소스 검색

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

updated device chat after account deletion
cyBerta 5 년 전
부모
커밋
eb9c46e229
2개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      deltachat-ios/Controller/ChatListController.swift
  2. 0 1
      deltachat-ios/ViewModel/ChatListViewModel.swift

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