mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Omit empty msgtypes in message event content
Sticker events don't have a msgtype
This commit is contained in:
parent
c773e6f4c9
commit
bfe80f7ae0
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ func (content *ReactionEventContent) SetRelatesTo(rel *RelatesTo) {
|
|||
// https://matrix.org/docs/spec/client_server/r0.6.0#m-room-message
|
||||
type MessageEventContent struct {
|
||||
// Base m.room.message fields
|
||||
MsgType MessageType `json:"msgtype"`
|
||||
MsgType MessageType `json:"msgtype,omitempty"`
|
||||
Body string `json:"body"`
|
||||
|
||||
// Extra fields for text types
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue