diff --git a/src/libclient/contactmodel.cpp b/src/libclient/contactmodel.cpp index cd800cbfa176e98734e76fe2f4e049b619a4bd4a..080cdef934998a9fe0b775cf15345a4c1eea33d0 100644 --- a/src/libclient/contactmodel.cpp +++ b/src/libclient/contactmodel.cpp @@ -1188,7 +1188,8 @@ ContactModelPimpl::slotProfileReceived(const QString& accountId, if (accountId != linked.owner.id) return; - if (linked.owner.profileInfo.uri == peer) { + if (linked.owner.profileInfo.uri == peer || peer == "") { + // as SIP account doesn't have a uri, we emit a signal with the accountId in the peer parameter const auto newProfileInfo = storage::getProfileData(accountId, ""); linked.owner.accountModel->setAlias(accountId, newProfileInfo["alias"], false); linked.owner.accountModel->setAvatar(accountId, newProfileInfo["avatar"], false);