Skip to content
Snippets Groups Projects
Commit b04fa234 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

contactmodel: ignore trust request if a conversation request is there

Change-Id: If1de131e1bd2d076fc10163aaa97b48de4d632ab
parent 7f437856
No related branches found
No related tags found
No related merge requests found
......@@ -679,8 +679,10 @@ ContactModelPimpl::fillWithJamiContacts()
for (const auto& tr_info : pending_tr) {
// Get pending requests.
auto payload = tr_info[DRing::Account::TrustRequest::PAYLOAD].toUtf8();
auto contactUri = tr_info[DRing::Account::TrustRequest::FROM];
auto convId = tr_info[DRing::Account::TrustRequest::CONVERSATIONID];
if (!convId.isEmpty())
continue; // This will be added via getConversationsRequests
auto contactInfo = storage::buildContactFromProfile(linked.owner.id,
contactUri,
......@@ -700,7 +702,6 @@ ContactModelPimpl::fillWithJamiContacts()
contactInfo.profileInfo.avatar = photo.constData();
contactInfo.registeredName = "";
contactInfo.isBanned = false;
contactInfo.conversationId = tr_info[DRing::Account::TrustRequest::CONVERSATIONID];
{
std::lock_guard<std::mutex> lk(contactsMtx_);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment