mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 14:16:59 +02:00
Bug Fix - Room Members/Invite screen: Remove the current participants from the default displayed list.
This commit is contained in:
@@ -826,6 +826,21 @@
|
||||
// Display by default all the contacts who share a private room with the current user
|
||||
invitableContacts = [NSMutableArray arrayWithArray:[[MXKContactManager sharedManager] privateMatrixContacts:self.mxRoom.mxSession]];
|
||||
|
||||
// Remove the current participants
|
||||
for (NSUInteger index = 0; index < invitableContacts.count;)
|
||||
{
|
||||
MXKContact* contact = invitableContacts[index];
|
||||
if ([contactsById objectForKey:contact.matrixIdentifiers.firstObject] != nil)
|
||||
{
|
||||
[invitableContacts removeObject:contact];
|
||||
}
|
||||
else
|
||||
{
|
||||
// Next
|
||||
index ++;
|
||||
}
|
||||
}
|
||||
|
||||
// Sort alphabetically this list of contacts
|
||||
[self sortAlphabeticallyInvitableContacts];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user