The matrix Users are displayed if the user did not give access to his local contacts book.

This commit is contained in:
ylecollen 2015-01-23 16:08:54 +01:00
parent f0e9580df9
commit 51c3c4ff66

View file

@ -226,7 +226,7 @@ static ContactManager* sharedContactManager = nil;
for(MXUser* user in users) {
if ([knownUserIDs indexOfObject:user.userId] == NSNotFound) {
if (!knownUserIDs || [knownUserIDs indexOfObject:user.userId] == NSNotFound) {
NSString* dummyContactID = [NSString stringWithFormat:@"%lu", (unsigned long)user.userId.hash];
// with the current API, there is no way to get the email from the matrxID