Browse Source

Only resync avatar if the user sync query returns one

Tulir Asokan 3 năm trước cách đây
mục cha
commit
52e3cdb121
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      user.go

+ 1 - 1
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)
 	}
 }