浏览代码

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

cyberta 4 年之前
父节点
当前提交
9e6792062b
共有 1 个文件被更改,包括 3 次插入0 次删除
  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+
     // context menu for iOS 13+
     @available(iOS 13, *)
     @available(iOS 13, *)
     override func tableView(_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? {
     override func tableView(_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? {
+        if tableView.isEditing {
+            return nil
+        }
         return UIContextMenuConfiguration(
         return UIContextMenuConfiguration(
             identifier: nil,
             identifier: nil,
             previewProvider: nil,
             previewProvider: nil,