From 213e9eaf1365bc3e626898474cc205e8d8e3eab3 Mon Sep 17 00:00:00 2001 From: Annie Elequin Date: Thu, 16 Sep 2021 17:06:14 -0400 Subject: [PATCH] Comment out setRoomAvatarUrl --- puppet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/puppet.go b/puppet.go index 6dd2730..1332c25 100644 --- a/puppet.go +++ b/puppet.go @@ -195,7 +195,7 @@ func (puppet *Puppet) UpdateAvatar(source *User, portalMXID id.RoomID, avatar st if len(avatar) == 0 { var err error - err = puppet.DefaultIntent().SetRoomAvatarURL(portalMXID, id.ContentURI{}) + // err = puppet.DefaultIntent().SetRoomAvatarURL(portalMXID, id.ContentURI{}) if err != nil { puppet.log.Warnln("Failed to remove avatar:", err, puppet.MXID) @@ -222,7 +222,7 @@ func (puppet *Puppet) UpdateAvatar(source *User, portalMXID id.RoomID, avatar st puppet.log.Warnln("Failed to upload avatar:", err) return false } - err = puppet.DefaultIntent().SetRoomAvatarURL(portalMXID, resp.ContentURI) + // err = puppet.DefaultIntent().SetRoomAvatarURL(portalMXID, resp.ContentURI) if err != nil { puppet.log.Warnln("Failed to set avatar:", err) }