瀏覽代碼

fix navigation bar update on disabling/enabling location streaming

cyberta 5 年之前
父節點
當前提交
319ad1ea93
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      deltachat-ios/Controller/ChatViewController.swift

+ 2 - 3
deltachat-ios/Controller/ChatViewController.swift

@@ -150,9 +150,8 @@ class ChatViewController: MessagesViewController {
         // this will be removed in viewWillDisappear
         navigationController?.navigationBar.addGestureRecognizer(navBarTap)
 
-        let chat = DcChat(id: chatId)
         if showCustomNavBar {
-            updateTitle(chat: chat)
+            updateTitle(chat: DcChat(id: chatId))
         }
 
         configureMessageMenu()
@@ -176,7 +175,7 @@ class ChatViewController: MessagesViewController {
                     }
                 }
                 if self.showCustomNavBar {
-                    self.updateTitle(chat: chat)
+                    self.updateTitle(chat: DcChat(id: self.chatId))
                 }
             }
         }