mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 09:23:51 +01:00
Only resync avatar if the user sync query returns one
This commit is contained in:
parent
19b4c3093a
commit
52e3cdb121
1 changed files with 1 additions and 1 deletions
2
user.go
2
user.go
|
@ -334,7 +334,7 @@ func (user *User) doPuppetResync() {
|
||||||
} else if contact.Found {
|
} else if contact.Found {
|
||||||
contactPtr = &contact
|
contactPtr = &contact
|
||||||
}
|
}
|
||||||
puppet.Sync(user, contactPtr, info.PictureID != puppet.Avatar)
|
puppet.Sync(user, contactPtr, info.PictureID != "" && info.PictureID != puppet.Avatar)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue