From a770263d86f65dc6c81572d402ae8a2c31a78c60 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 12 May 2020 23:38:01 +0300 Subject: [PATCH] Encrypt media bridging error notices --- portal.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/portal.go b/portal.go index 04b6c96..ccc1572 100644 --- a/portal.go +++ b/portal.go @@ -1001,7 +1001,10 @@ func (portal *Portal) HandleMediaMessage(source *User, download func() ([]byte, return } else if err != nil { portal.log.Errorfln("Failed to download media for %s: %v", info.Id, err) - resp, err := portal.MainIntent().SendNotice(portal.MXID, "Failed to bridge media") + resp, err := portal.sendMainIntentMessage(event.MessageEventContent{ + MsgType: event.MsgNotice, + Body: "Failed to bridge media", + }) if err != nil { portal.log.Errorfln("Failed to send media download error message for %s: %v", info.Id, err) } else {