Skip to content

Commit

Permalink
Remove unnecessary StoreContact call
Browse files Browse the repository at this point in the history
This call was meant to save changes to the Contact's avatar hash, but
the hash is no longer stored there, making this call obsolete.
  • Loading branch information
AndrewFerr committed Mar 12, 2024
1 parent d451d51 commit f96ad70
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions puppet.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,6 @@ func (puppet *Puppet) updateAvatar(ctx context.Context, source *User, info *type
return true
}
puppet.AvatarHash = newHash
source.Client.Store.ContactStore.StoreContact(ctx, *info)
err = source.Client.Store.ContactStore.StoreContact(ctx, *info)
if err != nil {
log.Warn().Err(err).Msg("error updating contact's profile avatar hash")
}
}
puppet.AvatarSet = false
puppet.AvatarURL = id.ContentURI{}
Expand Down

0 comments on commit f96ad70

Please sign in to comment.