فهرست منبع

only update the button if the mode is archived

Simon Laux 1 سال پیش
والد
کامیت
81a65534c2
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      deltachat-ios/Controller/ChatListController.swift

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

@@ -661,6 +661,7 @@ class ChatListController: UITableViewController {
                 navigationItem.setLeftBarButton(nil, animated: true)
                 navigationItem.setLeftBarButton(nil, animated: true)
                 navigationItem.setRightBarButton(markArchivedReadButton, animated: true)
                 navigationItem.setRightBarButton(markArchivedReadButton, animated: true)
             }
             }
+            updateMarkArchivedReadButton()
         } else {
         } else {
             titleView.text = DcUtils.getConnectivityString(dcContext: dcContext, connectedString: String.localized("pref_chats"))
             titleView.text = DcUtils.getConnectivityString(dcContext: dcContext, connectedString: String.localized("pref_chats"))
             if !handleMultiSelectionTitle() {
             if !handleMultiSelectionTitle() {
@@ -674,7 +675,6 @@ class ChatListController: UITableViewController {
         }
         }
         titleView.isUserInteractionEnabled = !tableView.isEditing
         titleView.isUserInteractionEnabled = !tableView.isEditing
         titleView.sizeToFit()
         titleView.sizeToFit()
-        updateMarkArchivedReadButton()
     }
     }
 
 
     func handleMultiSelectionTitle() -> Bool {
     func handleMultiSelectionTitle() -> Bool {
@@ -704,7 +704,9 @@ class ChatListController: UITableViewController {
                 self.handleEmptyStateLabel()
                 self.handleEmptyStateLabel()
             }
             }
         }
         }
-        updateMarkArchivedReadButton()
+        if isArchive {
+            updateMarkArchivedReadButton()
+        }
     }
     }
     
     
     func updateMarkArchivedReadButton(){
     func updateMarkArchivedReadButton(){