Browse Source

update chat before updating header

nayooti 5 years ago
parent
commit
beca29e694
1 changed files with 2 additions and 2 deletions
  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