mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-04-21 21:52:03 +02:00
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
This commit is contained in:
parent
c8c8208378
commit
564581b1f7
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Reference in a new issue