mirror of
https://github.com/pushbits/server.git
synced 2025-05-02 19:56:15 +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"`
|
MsgType MsgType `json:"msgtype"`
|
||||||
RelatesTo RelatesTo `json:"m.relates_to,omitempty"`
|
RelatesTo RelatesTo `json:"m.relates_to,omitempty"`
|
||||||
Format MessageFormat `json:"format"`
|
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
|
// RelatesTo holds information about relations to other message events
|
||||||
|
@ -212,7 +212,7 @@ func (d *Dispatcher) replaceMessage(a *model.Application, newBody, newFormattedB
|
||||||
Body: oldBody,
|
Body: oldBody,
|
||||||
FormattedBody: oldFormattedBody,
|
FormattedBody: oldFormattedBody,
|
||||||
MsgType: MsgTypeText,
|
MsgType: MsgTypeText,
|
||||||
NewContent: newMessage,
|
NewContent: &newMessage,
|
||||||
RelatesTo: replaceRelation,
|
RelatesTo: replaceRelation,
|
||||||
Format: MessageFormatHTML,
|
Format: MessageFormatHTML,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue