Эх сурвалжийг харах

navigate back to chatlist if user cancels forwarding in a chat

cyberta 5 жил өмнө
parent
commit
1635563229

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

@@ -505,7 +505,10 @@ class ChatViewController: MessagesViewController {
                           actionTitle: String.localized("menu_forward"),
                           actionHandler: { _ in
                             RelayHelper.sharedInstance.forward(to: self.chatId)
-                            self.dismiss(animated: true, completion: nil)})
+                            self.dismiss(animated: true, completion: nil)},
+                          cancelHandler: { _ in
+                            self.dismiss(animated: false, completion: nil)
+                            self.coordinator?.navigateBack()})
     }
 }