浏览代码

update group members on reappearing from QR-Invite code

cyberta 5 年之前
父节点
当前提交
c91d67576e
共有 1 个文件被更改,包括 7 次插入0 次删除
  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")
     }
 
+    override func viewWillAppear(_ animated: Bool) {
+        if groupChatId != 0 {
+            let chat = DcChat.init(id: groupChatId)
+            updateGroupContactIds(Set(chat.contactIds))
+        }
+    }
+
     @objc func doneButtonPressed() {
         if groupChatId == 0 {
             groupChatId = dcContext.createGroupChat(verified: isVerifiedGroup, name: groupName)