Explorar o código

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 %!s(int64=2) %!d(string=hai) anos
pai
achega
d956bd9a92
Modificáronse 1 ficheiros con 1 adicións e 6 borrados
  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()
             }
         }