Kaynağa Gözat

don't allow to show context menu if editing mode is enabled for iOS13+

cyberta 4 yıl önce
ebeveyn
işleme
9e6792062b
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      deltachat-ios/Chat/ChatViewController.swift

+ 3 - 0
deltachat-ios/Chat/ChatViewController.swift

@@ -1149,6 +1149,9 @@ class ChatViewController: UITableViewController {
     // context menu for iOS 13+
     @available(iOS 13, *)
     override func tableView(_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? {
+        if tableView.isEditing {
+            return nil
+        }
         return UIContextMenuConfiguration(
             identifier: nil,
             previewProvider: nil,