add contact request view

This new view is implemented by changing the conversation model filter
type to PENDING. Two buttons are added under search field to switch
between regular conversations and those from not-yet-trusted contacts.

Change-Id: I0207bc41cd13b63624b353cce49877cc6694bdb7
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
diff --git a/src/ConversationVC.mm b/src/ConversationVC.mm
index 9069fd7..f697506 100644
--- a/src/ConversationVC.mm
+++ b/src/ConversationVC.mm
@@ -190,8 +190,12 @@
     /* make sure there is text to send */
     NSString* text = self.message;
     if (text && text.length > 0) {
+        auto* conv = [self getCurrentConversation];
+        bool isPending = convModel_->owner.contactModel->getContact(conv->participants[0]).profileInfo.type == lrc::api::profile::Type::PENDING;
         convModel_->sendMessage(convUid_, std::string([text UTF8String]));
         self.message = @"";
+        if (isPending)
+            [delegate currentConversationTrusted];
         [messagesViewVC newMessageSent];
     }
 }