Encrypt media bridging error notices

This commit is contained in:
Tulir Asokan 2020-05-12 23:38:01 +03:00
parent 562754bc77
commit a770263d86

View file

@ -1001,7 +1001,10 @@ func (portal *Portal) HandleMediaMessage(source *User, download func() ([]byte,
return return
} else if err != nil { } else if err != nil {
portal.log.Errorfln("Failed to download media for %s: %v", info.Id, err) 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 { if err != nil {
portal.log.Errorfln("Failed to send media download error message for %s: %v", info.Id, err) portal.log.Errorfln("Failed to send media download error message for %s: %v", info.Id, err)
} else { } else {