Selaa lähdekoodia

update chat before updating header

nayooti 5 vuotta sitten
vanhempi
commit
beca29e694
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      deltachat-ios/Controller/GroupChatDetailViewController.swift

+ 2 - 2
deltachat-ios/Controller/GroupChatDetailViewController.swift

@@ -137,12 +137,12 @@ class GroupChatDetailViewController: UIViewController {
 
     override func viewWillAppear(_ animated: Bool) {
         super.viewWillAppear(animated)
+        //update chat object, maybe chat name was edited
+        chat = DcChat(id: chat.id)
         updateGroupMembers()
         tableView.reloadData() // to display updates
         editBarButtonItem.isEnabled = currentUser != nil
         updateHeader()
-        //update chat object, maybe chat name was edited
-        chat = DcChat(id: chat.id)
     }
 
     // MARK: - update