mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 14:16:59 +02:00
Contact picker: display by default all the contacts who share a private room with the current user.
This commit is contained in:
@@ -354,8 +354,8 @@
|
||||
{
|
||||
if (!currentSearchText.length)
|
||||
{
|
||||
// Display the list of contacts for whom a 1:1 room exists by default
|
||||
invitableContacts = [NSMutableArray arrayWithArray:[MXKContactManager sharedManager].oneToOneMatrixContacts];
|
||||
// Display by default all the contacts who share a private room with the current user
|
||||
invitableContacts = [NSMutableArray arrayWithArray:[[MXKContactManager sharedManager] privateMatrixContacts:self.mainSession]];
|
||||
|
||||
// Sort the refreshed list of the invitable contacts
|
||||
[self sortInvitableContacts];
|
||||
|
||||
Reference in New Issue
Block a user