瀏覽代碼

don't show connection state in archived chats title bar

cyberta 4 年之前
父節點
當前提交
09dd44790d
共有 1 個文件被更改,包括 3 次插入2 次删除
  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 {
                 navigationItem.setLeftBarButton(cancelButton, animated: true)
             }
+        } else if viewModel.isArchive {
+            titleView.text = String.localized("chat_archived_chats_title")
+            navigationItem.setLeftBarButton(nil, animated: true)
         } else {
-            let connectedText: String = viewModel.isArchive ? String.localized("chat_archived_chats_title") :
-                String.localized("app_name")
             titleView.text = getConnectivityString(conenctedString: connectedText)
             navigationItem.setLeftBarButton(nil, animated: true)
         }