conversations: user search
Change-Id: Icb5c130e8fa2fe7d2691ae7e9b1abaacb78e8bbc
diff --git a/src/ConversationVC.mm b/src/ConversationVC.mm
index 5de8e15..186a8b6 100644
--- a/src/ConversationVC.mm
+++ b/src/ConversationVC.mm
@@ -113,11 +113,8 @@
if (cachedConv_ != nil)
return cachedConv_;
- auto convQueue = convModel_->allFilteredConversations();
-
- auto it = getConversationFromUid(convUid_, *convModel_);
-
- if (it != convQueue.end())
+ auto it = getConversationFromUid(convUid_, *convModel_, true);
+ if (conversationExists(it, *convModel_, true))
cachedConv_ = &(*it);
return cachedConv_;
@@ -170,7 +167,13 @@
return;
// Setup UI elements according to new conversation
+ NSLog(@"account info, %@", conv->accountId.toNSString());
+ NSLog(@"conv info, %@", conv->uid.toNSString());
+ NSLog(@"paricipant info, %@", conv->participants[0].toNSString());
NSString* bestName = bestNameForConversation(*conv, *convModel_);
+ NSLog(@"account info, %@", conv->accountId.toNSString());
+ NSLog(@"conv info, %@", conv->uid.toNSString());
+ NSLog(@"paricipant info, %@", conv->participants[0].toNSString());
NSString* bestId = bestIDForConversation(*conv, *convModel_);
[conversationTitle setStringValue: bestName];
[conversationID setStringValue: bestId];