Remove debug-only logging for `SetAvatar`
This commit is contained in:
parent
54c30a4abc
commit
10e1b93ed1
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue