From 564581b1f7bb54e8b10779db066f8cbd4dc0453c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Fri, 3 Feb 2023 11:44:57 -0500 Subject: [PATCH] contactmodel: use new avatar received for account If the avatar for an account is set on a device, it will send to detected devices on new connections. The client was ignoring the new avatar if it was not empty, now we just use the last received avatar Change-Id: I0b2cde9c193d46014c4d600775743312219b84df --- src/libclient/contactmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libclient/contactmodel.cpp b/src/libclient/contactmodel.cpp index f46f86ec9..2aaa37b67 100644 --- a/src/libclient/contactmodel.cpp +++ b/src/libclient/contactmodel.cpp @@ -1186,7 +1186,7 @@ ContactModelPimpl::slotProfileReceived(const QString& accountId, profileInfo.alias = e.split(":")[1]; if (peer == linked.owner.profileInfo.uri) { - if (linked.owner.profileInfo.avatar.isEmpty() && !profileInfo.avatar.isEmpty()) { + if (!profileInfo.avatar.isEmpty()) { auto dest = storage::getPath() + accountId + "/profile.vcf"; QFile oldvCard(dest); if (oldvCard.exists()) -- GitLab