Commit 0c65bd15 authored by Anthony Léonard's avatar Anthony Léonard Committed by Olivier SOLDANO

handle auto trust when sending file to unknown peer

Make sure that UI has the right behavior when a contact is implicitly
trusted by file sending.

Change-Id: I79d20422d8a16b5b0e8a5bb199c84d131a659a29
Reviewed-by: default avatarOlivier Soldano <>
parent 645871e2
......@@ -215,7 +215,13 @@
const char* fullPath = [url fileSystemRepresentation];
NSString* fileName = [url lastPathComponent];
if (convModel_) {
auto* conv = [self getCurrentConversation];
bool isPending = convModel_->owner.contactModel->getContact(conv->participants[0]).profileInfo.type == lrc::api::profile::Type::PENDING;
convModel_->sendFile(convUid_, std::string(fullPath), std::string([fileName UTF8String]));
if (isPending)
[delegate currentConversationTrusted];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment