浏览代码

navigate back to chatlist if user cancels forwarding in a chat

cyberta 5 年之前
父节点
当前提交
1635563229
共有 1 个文件被更改,包括 4 次插入1 次删除
  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()})
     }
 }