Skip to content
Snippets Groups Projects
Commit 564581b1 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

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
parent c8c82083
No related branches found
No related tags found
No related merge requests found
......@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment