mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-15 10:53:09 -06:00
Add omitempty for predecessor
Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
parent
764b459181
commit
7f9685fa0c
|
|
@ -19,7 +19,7 @@ type CreateContent struct {
|
|||
Creator string `json:"creator"`
|
||||
Federate *bool `json:"m.federate,omitempty"`
|
||||
RoomVersion string `json:"room_version,omitempty"`
|
||||
Predecessor PreviousRoom `json:"predecessor"`
|
||||
Predecessor PreviousRoom `json:"predecessor,omitempty"`
|
||||
}
|
||||
|
||||
// PreviousRoom is the "Previous Room" structure defined at https://matrix.org/docs/spec/client_server/r0.5.0#m-room-create
|
||||
|
|
|
|||
Loading…
Reference in a new issue