From 52e3cdb12165a6c976f438ce029a6db59b56da32 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 28 Jun 2022 16:25:41 +0300 Subject: [PATCH] Only resync avatar if the user sync query returns one --- user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user.go b/user.go index 4264fad..dd1830d 100644 --- a/user.go +++ b/user.go @@ -334,7 +334,7 @@ func (user *User) doPuppetResync() { } else if contact.Found { contactPtr = &contact } - puppet.Sync(user, contactPtr, info.PictureID != puppet.Avatar) + puppet.Sync(user, contactPtr, info.PictureID != "" && info.PictureID != puppet.Avatar) } }