Ver código fonte

Merge pull request #613 from deltachat/tweak-update-device-chats

updated device chat after account deletion
cyBerta 5 anos atrás
pai
commit
eb9c46e229

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

@@ -70,6 +70,7 @@ class ChatListController: UITableViewController {
     override func viewWillAppear(_ animated: Bool) {
         super.viewWillAppear(animated)
 
+        dcContext.updateDeviceChats()
         updateTitle()
         viewModel.refreshData()
 

+ 0 - 1
deltachat-ios/ViewModel/ChatListViewModel.swift

@@ -63,7 +63,6 @@ class ChatListViewModel: NSObject, ChatListViewModelProtocol {
     private var searchResultSections: [ChatListSectionType] = []
 
     init(dcContext: DcContext, isArchive: Bool) {
-        dcContext.updateDeviceChats()
         self.isArchive = isArchive
         self.dcContext = dcContext
         super.init()