Răsfoiți Sursa

fix missing list update on single cell edit action in chat list

cyberta 3 ani în urmă
părinte
comite
c12798d133
1 a modificat fișierele cu 5 adăugiri și 0 ștergeri
  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]
         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) {
     func setLongTapEditing(_ editing: Bool, initialIndexPath: [IndexPath]? = nil) {
         tableView.setEditing(editing, animated: true)
         tableView.setEditing(editing, animated: true)
         viewModel?.setEditing(editing)
         viewModel?.setEditing(editing)