|
@@ -414,7 +414,7 @@ class GroupChatDetailCoordinator: Coordinator {
|
|
|
}
|
|
|
previewController = PreviewController(currentIndex: 0, urls: mediaUrls)
|
|
|
if let previewController = previewController {
|
|
|
- navigationController.pushViewController(previewController.qlController, animated: true)
|
|
|
+ navigationController.pushViewController(previewController, animated: true)
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -523,6 +523,13 @@ class ChatViewCoordinator: NSObject, Coordinator {
|
|
|
func showPhotoVideoLibrary(delegate: MediaPickerDelegate) {
|
|
|
mediaPicker.showPhotoVideoLibrary(delegate: delegate)
|
|
|
}
|
|
|
+
|
|
|
+ func showMediaGallery(currentIndex: Int, mediaUrls urls: [URL]) {
|
|
|
+ let betterPreviewController = PreviewController(currentIndex: currentIndex, urls: urls)
|
|
|
+ let nav = UINavigationController(rootViewController: betterPreviewController)
|
|
|
+
|
|
|
+ navigationController.present(nav, animated: true)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
class NewGroupAddMembersCoordinator: Coordinator {
|
|
@@ -670,7 +677,7 @@ class ContactDetailCoordinator: Coordinator, ContactDetailCoordinatorProtocol {
|
|
|
}
|
|
|
previewController = PreviewController(currentIndex: 0, urls: mediaUrls)
|
|
|
if let previewController = previewController {
|
|
|
- navigationController.pushViewController(previewController.qlController, animated: true)
|
|
|
+ navigationController.pushViewController(previewController, animated: true)
|
|
|
}
|
|
|
}
|
|
|
|