mirror of
https://github.com/pushbits/server.git
synced 2025-05-01 19:26:41 +02:00
fix empty notifications
This commit is contained in:
parent
473a005f45
commit
e9c0b6e3a9
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue