This commit is contained in:
Colin Reeder
2021-12-18 14:53:51 -07:00
parent 89f4e2d5ba
commit a0b207609c

View File

@@ -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,
},
}