1
0
Fork 0

Remove debug-only logging for `SetAvatar`

This commit is contained in:
Alex Palaistras 2023-12-01 13:40:52 +00:00
parent 54c30a4abc
commit 10e1b93ed1
1 changed files with 1 additions and 3 deletions

View File

@ -457,7 +457,7 @@ func (s *Session) SetAvatar(resourceID, avatarPath string) (string, error) {
var jid types.JID
var err error
// defer os.Remove(avatarPath)
defer os.Remove(avatarPath)
// Setting the profile picture for the user expects an empty `resourceID`.
if resourceID == "" {
@ -471,8 +471,6 @@ func (s *Session) SetAvatar(resourceID, avatarPath string) (string, error) {
return "", fmt.Errorf("Failed converting avatar to JPEG: %s", err)
}
fmt.Printf("Avatar path: %s\n", avatarPath)
avatar, err := os.ReadFile(avatarPath)
if err != nil {
return "", fmt.Errorf("Failed reading avatar: %s", err)