forked from MirrorHub/mautrix-whatsapp
portal: bridge notices
This commit is contained in:
parent
064b5b8fed
commit
973afcdd26
1 changed files with 1 additions and 1 deletions
|
@ -1263,7 +1263,7 @@ func (portal *Portal) HandleMatrixMessage(sender *User, evt *mautrix.Event) {
|
||||||
}
|
}
|
||||||
var err error
|
var err error
|
||||||
switch evt.Content.MsgType {
|
switch evt.Content.MsgType {
|
||||||
case mautrix.MsgText, mautrix.MsgEmote:
|
case mautrix.MsgText, mautrix.MsgEmote, mautrix.MsgNotice:
|
||||||
text := evt.Content.Body
|
text := evt.Content.Body
|
||||||
if evt.Content.Format == mautrix.FormatHTML {
|
if evt.Content.Format == mautrix.FormatHTML {
|
||||||
text = portal.bridge.Formatter.ParseMatrix(evt.Content.FormattedBody)
|
text = portal.bridge.Formatter.ParseMatrix(evt.Content.FormattedBody)
|
||||||
|
|
Loading…
Reference in a new issue