Browse Source

Merge pull request #1618 from deltachat/fix_swipe_to_edit_list_updates

fix missing list update on single cell edit action in chat list
cyBerta 3 năm trước cách đây
mục cha
commit
b5b405c93c
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      deltachat-ios/Controller/ChatListController.swift

+ 5 - 0
deltachat-ios/Controller/ChatListController.swift

@@ -460,6 +460,11 @@ class ChatListController: UITableViewController {
         return [archiveAction, pinAction, deleteAction]
     }
 
+    override func setEditing(_ editing: Bool, animated: Bool) {
+        super.setEditing(editing, animated: animated)
+        viewModel?.setEditing(editing)
+    }
+
     func setLongTapEditing(_ editing: Bool, initialIndexPath: [IndexPath]? = nil) {
         tableView.setEditing(editing, animated: true)
         viewModel?.setEditing(editing)