Skip to content

Commit

Permalink
Ignore avatar in current user initial data
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jul 9, 2024
1 parent 15f82bb commit 47aeb47
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion puppet.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,10 @@ func (puppet *Puppet) UpdateInfo(ctx context.Context, info types.UserInfo) {
update = true
}
update = puppet.updateName(ctx, info.GetName(), puppet.Username) || update
update = puppet.updateAvatar(ctx, info.GetAvatarURL()) || update
_, isInitialData := info.(*types.CurrentUserInitialData)
if !isInitialData {
update = puppet.updateAvatar(ctx, info.GetAvatarURL()) || update
}
if update {
puppet.ContactInfoSet = false
puppet.UpdateContactInfo(ctx)
Expand Down

0 comments on commit 47aeb47

Please sign in to comment.