Browse Source

added video option in clipper menu

Bastian van de Wetering 6 years ago
parent
commit
e6fa4e8e18

+ 7 - 1
deltachat-ios/Controller/ChatViewController.swift

@@ -770,9 +770,11 @@ extension ChatViewController: MessagesLayoutDelegate {
 
 
 	private func showClipperOptions() {
 	private func showClipperOptions() {
 		let alert = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
 		let alert = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet)
-
 		let photoAction = PhotoPickerAlertAction(title: "Photo", style: .default, handler: photoButtonPressed(_:))
 		let photoAction = PhotoPickerAlertAction(title: "Photo", style: .default, handler: photoButtonPressed(_:))
+		let videoAction = PhotoPickerAlertAction(title: "Video", style: .default, handler: videoButtonPressed(_:))
+
 		alert.addAction(photoAction)
 		alert.addAction(photoAction)
+		alert.addAction(videoAction)
 		alert.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: nil))
 		alert.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: nil))
 		self.present(alert, animated: true, completion: nil)
 		self.present(alert, animated: true, completion: nil)
 	}
 	}
@@ -781,6 +783,10 @@ extension ChatViewController: MessagesLayoutDelegate {
 		coordinator?.showCameraViewController()
 		coordinator?.showCameraViewController()
 	}
 	}
 
 
+	private func videoButtonPressed(_ action: UIAlertAction) {
+		coordinator?.showVideoPicker()
+	}
+
 }
 }
 
 
 // MARK: - MessageCellDelegate
 // MARK: - MessageCellDelegate

+ 3 - 0
deltachat-ios/Coordinator/AppCoordinator.swift

@@ -443,6 +443,9 @@ class ChatViewCoordinator: Coordinator {
 			navigationController.present(alert, animated: true, completion: nil)
 			navigationController.present(alert, animated: true, completion: nil)
 		}
 		}
 
 
+	}
+	func showVideoPicker() {
+		
 	}
 	}
 }
 }