浏览代码

context menu now prepared in viewWillAppear

nayooti 4 年之前
父节点
当前提交
640114ba03
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      deltachat-ios/Chat/ChatViewControllerNew.swift

+ 1 - 1
deltachat-ios/Chat/ChatViewControllerNew.swift

@@ -148,7 +148,6 @@ class ChatViewControllerNew: UITableViewController {
         notificationCenter.addObserver(self, selector: #selector(keyboardWillShow(_:)), name: UIResponder.keyboardWillShowNotification, object: nil)
         notificationCenter.addObserver(self, selector: #selector(keyboardWillHide(_:)), name: UIResponder.keyboardWillHideNotification, object: nil)
         notificationCenter.addObserver(self, selector: #selector(keyboardDidShow(_:)), name: UIResponder.keyboardDidShowNotification, object: nil)
-        prepareContextMenu()
     }
 
     @objc func keyboardDidShow(_ notification: Notification) {
@@ -260,6 +259,7 @@ class ChatViewControllerNew: UITableViewController {
         if RelayHelper.sharedInstance.isForwarding() {
             askToForwardMessage()
         }
+        prepareContextMenu()
     }
 
     override func viewDidAppear(_ animated: Bool) {