瀏覽代碼

avoid imbalance between setting and revoking editing state in ChatListController

cyberta 3 年之前
父節點
當前提交
0e50b10b40
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      deltachat-ios/Controller/ChatListController.swift

+ 1 - 2
deltachat-ios/Controller/ChatListController.swift

@@ -472,8 +472,7 @@ class ChatListController: UITableViewController {
     }
 
     func setLongTapEditing(_ editing: Bool, initialIndexPath: [IndexPath]? = nil) {
-        tableView.setEditing(editing, animated: true)
-        viewModel?.setEditing(editing)
+        setEditing(editing, animated: true)
         if editing {
             addEditingView()
             if let viewModel = viewModel {