Skip to content
Snippets Groups Projects
Commit d1882842 authored by Léopold Chappuis's avatar Léopold Chappuis Committed by Léopold Chappuis
Browse files

update-profile: Handle ProfileReceived Signal for SIP Accounts

Since SIP accounts lack a URI, we need to address scenarios where the daemon includes the accountID in the uri parameter. Refer to 29623 for more details.

Change-Id: Ib58e77dc953269c87d67d4068866c93432d08aae
parent a01b5780
Branches
Tags
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment