소스 검색

move prepareContextMenu() to viewWillAppear, fixes missing menu options when the user tapped the galleries 'show in chat'

cyberta 4 년 전
부모
커밋
cbd7d2fff2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

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

@@ -164,7 +164,6 @@ class ChatViewController: UITableViewController {
                                        name: UIApplication.willResignActiveNotification,
                                        object: nil)
         notificationCenter.addObserver(self, selector: #selector(keyboardWillShow(_:)), name: UIResponder.keyboardWillShowNotification, object: nil)
-        prepareContextMenu()
     }
 
     @objc func keyboardWillShow(_ notification: Notification) {
@@ -220,6 +219,7 @@ class ChatViewController: UITableViewController {
             askToForwardMessage()
         }
 
+        prepareContextMenu()
     }
 
     override func viewDidAppear(_ animated: Bool) {