Skip to content
Snippets Groups Projects
Commit c4e86975 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

chatview: check trust status before hiding add contact button

Change-Id: Idd1a3839315129c9ca4507d3e9a1d1079db4cc18
parent 8541ffa8
No related branches found
No related tags found
No related merge requests found
...@@ -839,8 +839,10 @@ CallWidget::setupChatView(const lrc::api::conversation::Info& convInfo) ...@@ -839,8 +839,10 @@ CallWidget::setupChatView(const lrc::api::conversation::Info& convInfo)
auto& accountInfo = LRCInstance::accountModel().getAccountInfo(selectedAccountId); auto& accountInfo = LRCInstance::accountModel().getAccountInfo(selectedAccountId);
bool isRINGAccount = accountInfo.profileInfo.type == lrc::api::profile::Type::RING; bool isRINGAccount = accountInfo.profileInfo.type == lrc::api::profile::Type::RING;
try { try {
accountInfo.contactModel->getContact(contactURI.toStdString()); auto contactInfo = accountInfo.contactModel->getContact(contactURI.toStdString());
if (contactInfo.isTrusted) {
isContact = true; isContact = true;
}
} catch (...) {} } catch (...) {}
ui->imNameLabel->setText(QString(tr("%1", "%1 is the contact username")) ui->imNameLabel->setText(QString(tr("%1", "%1 is the contact username"))
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment