瀏覽代碼

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 年之前
父節點
當前提交
d956bd9a92
共有 1 個文件被更改,包括 1 次插入6 次删除
  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()
             }
         }