mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Fix unknown contacts in new closed group screen
This commit is contained in:
parent
fcf0910e51
commit
baf379e6c7
1 changed files with 2 additions and 1 deletions
|
@ -7,8 +7,9 @@ final class NewClosedGroupVC : BaseVC, UITableViewDataSource, UITableViewDelegat
|
|||
let storage = OWSPrimaryStorage.shared()
|
||||
storage.dbReadConnection.read { transaction in
|
||||
TSContactThread.enumerateCollectionObjects(with: transaction) { object, _ in
|
||||
guard let thread = object as? TSContactThread, thread.isContactFriend else { return }
|
||||
guard let thread = object as? TSContactThread, thread.shouldThreadBeVisible && thread.isContactFriend else { return }
|
||||
let hexEncodedPublicKey = thread.contactIdentifier()
|
||||
guard UserDisplayNameUtilities.getPrivateChatDisplayName(for: hexEncodedPublicKey) != nil else { return }
|
||||
// We shouldn't be able to add slave devices to groups
|
||||
if (storage.getMasterHexEncodedPublicKey(for: hexEncodedPublicKey, in: transaction) == nil) {
|
||||
result.append(hexEncodedPublicKey)
|
||||
|
|
Loading…
Reference in a new issue