Commit c4e86975 authored by Andreas Traczyk's avatar Andreas Traczyk

chatview: check trust status before hiding add contact button

Change-Id: Idd1a3839315129c9ca4507d3e9a1d1079db4cc18
parent 8541ffa8
......@@ -839,8 +839,10 @@ CallWidget::setupChatView(const lrc::api::conversation::Info& convInfo)
auto& accountInfo = LRCInstance::accountModel().getAccountInfo(selectedAccountId);
bool isRINGAccount = accountInfo.profileInfo.type == lrc::api::profile::Type::RING;
try {
accountInfo.contactModel->getContact(contactURI.toStdString());
isContact = true;
auto contactInfo = accountInfo.contactModel->getContact(contactURI.toStdString());
if (contactInfo.isTrusted) {
isContact = true;
}
} catch (...) {}
ui->imNameLabel->setText(QString(tr("%1", "%1 is the contact username"))
......
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