Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
Hotfix missing profile for user
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Feb 19, 2024
1 parent a70ef27 commit 121c52a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions puppet.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,11 @@ func (puppet *Puppet) updateAvatar(ctx context.Context, source *User, info *type
return true
}
var err error
if info.ProfileKey != nil {
log.Err(err).
Msg("Failed to download new user avatar, no profile key for contact")
return true
}
avatarData, err = source.Client.DownloadUserAvatar(ctx, info.ProfileAvatarPath, info.ProfileKey)
if err != nil {
log.Err(err).
Expand Down

0 comments on commit 121c52a

Please sign in to comment.