Browse Source

update title unconditionally in CHAT_MODIFIED

this will lead to double updates as
the title is updated in viewWillAppear as well
if viewControllers atop are removed.
however, this is probably only a minor issue
and the correct way seems to be to alter viewWillAppear
as doing fewer things there and having the ViewController "ready" before coming to view
feels snappier anyway.
B. Petersen 2 năm trước cách đây
mục cha
commit
d956bd9a92
1 tập tin đã thay đổi với 1 bổ sung6 xóa
  1. 1 6
      deltachat-ios/Chat/ChatViewController.swift

+ 1 - 6
deltachat-ios/Chat/ChatViewController.swift

@@ -617,12 +617,7 @@ class ChatViewController: UITableViewController, UITableViewDropDelegate {
                         self.messageInputBar.isHidden = true
                     }
                 }
-
-                let oldMuted = self.navigationItem.rightBarButtonItems?.contains(self.muteItem)
-                let newMuted = self.dcChat.isMuted
-                if oldMuted != newMuted {
-                    self.updateTitle()
-                }
+                self.updateTitle()
             }
         }