Browse Source

avoid flashing up empty-state label on archive opening (do not show 'there is no archive' for a second and then show the archive :)

B. Petersen 3 years ago
parent
commit
795527d5f1
1 changed files with 1 additions and 2 deletions
  1. 1 2
      deltachat-ios/Controller/ChatListController.swift

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

@@ -54,7 +54,7 @@ class ChatListController: UITableViewController {
 
     private lazy var emptyStateLabel: EmptyStateLabel = {
         let label = EmptyStateLabel()
-        label.isHidden = false
+        label.isHidden = true
         return label
     }()
 
@@ -96,7 +96,6 @@ class ChatListController: UITableViewController {
         let msg = dcContext.newMessage(viewType: DC_MSG_TEXT)
         msg.text = String.localized("update_1_28_android") + "\n\n" + String.localized("update_1_28_ios_extra_line")
         dcContext.addDeviceMessage(label: "update_1_28a_ios", msg: msg)
-        handleEmptyStateLabel()
     }
 
     override func willMove(toParent parent: UIViewController?) {