fix empty notifications

This commit is contained in:
cubicroot 2022-04-08 20:14:22 +02:00
parent 473a005f45
commit e9c0b6e3a9

View file

@ -33,7 +33,7 @@ type MessageEvent struct {
MsgType MsgType `json:"msgtype"`
RelatesTo RelatesTo `json:"m.relates_to,omitempty"`
Format MessageFormat `json:"format"`
NewContent NewContent `json:"m.new_content,omitempty"`
NewContent *NewContent `json:"m.new_content,omitempty"`
}
// RelatesTo holds information about relations to other message events
@ -212,7 +212,7 @@ func (d *Dispatcher) replaceMessage(a *model.Application, newBody, newFormattedB
Body: oldBody,
FormattedBody: oldFormattedBody,
MsgType: MsgTypeText,
NewContent: newMessage,
NewContent: &newMessage,
RelatesTo: replaceRelation,
Format: MessageFormatHTML,
}