Explorar o código

portal: bridge notices

Peter Roberts %!s(int64=5) %!d(string=hai) anos
pai
achega
973afcdd26
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      portal.go

+ 1 - 1
portal.go

@@ -1263,7 +1263,7 @@ func (portal *Portal) HandleMatrixMessage(sender *User, evt *mautrix.Event) {
 	}
 	var err error
 	switch evt.Content.MsgType {
-	case mautrix.MsgText, mautrix.MsgEmote:
+	case mautrix.MsgText, mautrix.MsgEmote, mautrix.MsgNotice:
 		text := evt.Content.Body
 		if evt.Content.Format == mautrix.FormatHTML {
 			text = portal.bridge.Formatter.ParseMatrix(evt.Content.FormattedBody)