Browse Source

don't show connection state in archived chats title bar

cyberta 4 years ago
parent
commit
09dd44790d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      deltachat-ios/Controller/ChatListController.swift

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

@@ -386,9 +386,10 @@ class ChatListController: UITableViewController {
             if !viewModel.isArchive {
             if !viewModel.isArchive {
                 navigationItem.setLeftBarButton(cancelButton, animated: true)
                 navigationItem.setLeftBarButton(cancelButton, animated: true)
             }
             }
+        } else if viewModel.isArchive {
+            titleView.text = String.localized("chat_archived_chats_title")
+            navigationItem.setLeftBarButton(nil, animated: true)
         } else {
         } else {
-            let connectedText: String = viewModel.isArchive ? String.localized("chat_archived_chats_title") :
-                String.localized("app_name")
             titleView.text = getConnectivityString(conenctedString: connectedText)
             titleView.text = getConnectivityString(conenctedString: connectedText)
             navigationItem.setLeftBarButton(nil, animated: true)
             navigationItem.setLeftBarButton(nil, animated: true)
         }
         }