Преглед на файлове

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))
                 }
             }
         }