Contact picker: display by default all the contacts who share a private room with the current user.

This commit is contained in:
giomfo
2016-09-08 16:26:27 +02:00
parent b25158f1df
commit c391a32b37
2 changed files with 39 additions and 7 deletions
@@ -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];