Эх сурвалжийг харах

updated device chat after account deletion

B. Petersen 5 жил өмнө
parent
commit
3197e20e8f

+ 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()