mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 01:14:29 +01:00
Encrypt media bridging error notices
This commit is contained in:
parent
562754bc77
commit
a770263d86
1 changed files with 4 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue