Browse Source

update group members on reappearing from QR-Invite code

cyberta 5 years ago
parent
commit
c91d67576e
1 changed files with 7 additions and 0 deletions
  1. 7 0
      deltachat-ios/Controller/NewGroupController.swift

+ 7 - 0
deltachat-ios/Controller/NewGroupController.swift

@@ -62,6 +62,13 @@ class NewGroupController: UITableViewController, MediaPickerDelegate {
         tableView.register(ActionCell.self, forCellReuseIdentifier: "actionCell")
         tableView.register(ActionCell.self, forCellReuseIdentifier: "actionCell")
     }
     }
 
 
+    override func viewWillAppear(_ animated: Bool) {
+        if groupChatId != 0 {
+            let chat = DcChat.init(id: groupChatId)
+            updateGroupContactIds(Set(chat.contactIds))
+        }
+    }
+
     @objc func doneButtonPressed() {
     @objc func doneButtonPressed() {
         if groupChatId == 0 {
         if groupChatId == 0 {
             groupChatId = dcContext.createGroupChat(verified: isVerifiedGroup, name: groupName)
             groupChatId = dcContext.createGroupChat(verified: isVerifiedGroup, name: groupName)