Only resync avatar if the user sync query returns one

This commit is contained in:
Tulir Asokan 2022-06-28 16:25:41 +03:00
parent 19b4c3093a
commit 52e3cdb121

View file

@ -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)
} }
} }