Explorar o código

navigate back to chatlist if user cancels forwarding in a chat

cyberta %!s(int64=5) %!d(string=hai) anos
pai
achega
1635563229
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      deltachat-ios/Controller/ChatViewController.swift

+ 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()})
     }
 }