From 51c3c4ff66f69a68935983a6e83d4561f9e5b908 Mon Sep 17 00:00:00 2001 From: ylecollen Date: Fri, 23 Jan 2015 16:08:54 +0100 Subject: [PATCH] The matrix Users are displayed if the user did not give access to his local contacts book. --- matrixConsole/API/ContactManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrixConsole/API/ContactManager.m b/matrixConsole/API/ContactManager.m index 7b4e9a716..ab466cdad 100644 --- a/matrixConsole/API/ContactManager.m +++ b/matrixConsole/API/ContactManager.m @@ -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