From d188284245cbcb4d61eb479ac64b820132accbe7 Mon Sep 17 00:00:00 2001 From: Leopold Chappuis <leopold.chappuis@savoirfairelinux.com> Date: Thu, 21 Nov 2024 15:39:58 -0500 Subject: [PATCH] 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 --- src/libclient/contactmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libclient/contactmodel.cpp b/src/libclient/contactmodel.cpp index cd800cbfa..080cdef93 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); -- GitLab