diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index 577c89f8..739a7923 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -289,16 +289,16 @@ func (b *Bmatrix) Send(msg config.Message) (string, error) { } if msg.ParentValid() { - m := ReplyMessage { - TextMessage: matrix.TextMessage { + m := ReplyMessage{ + TextMessage: matrix.TextMessage{ MsgType: "m.text", Body: username.plain + msg.Text, FormattedBody: username.formatted + helper.ParseMarkdown(msg.Text), }, } - m.RelatedTo = InReplyToRelation { - InReplyTo: InReplyToRelationContent { + m.RelatedTo = InReplyToRelation{ + InReplyTo: InReplyToRelationContent{ EventID: msg.ParentID, }, }