omitempty some fields in sync

This commit is contained in:
Neil Alexander 2021-01-13 13:03:24 +00:00
parent 55cfe391f7
commit f816db276b
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -366,14 +366,14 @@ type Response struct {
Events []gomatrixserverlib.ClientEvent `json:"events"` Events []gomatrixserverlib.ClientEvent `json:"events"`
} `json:"presence,omitempty"` } `json:"presence,omitempty"`
Rooms struct { Rooms struct {
Join map[string]JoinResponse `json:"join"` Join map[string]JoinResponse `json:"join,omitempty"`
Peek map[string]JoinResponse `json:"peek"` Peek map[string]JoinResponse `json:"peek,omitempty"`
Invite map[string]InviteResponse `json:"invite"` Invite map[string]InviteResponse `json:"invite,omitempty"`
Leave map[string]LeaveResponse `json:"leave"` Leave map[string]LeaveResponse `json:"leave,omitempty"`
} `json:"rooms"` } `json:"rooms,omitempty"`
ToDevice struct { ToDevice struct {
Events []gomatrixserverlib.SendToDeviceEvent `json:"events"` Events []gomatrixserverlib.SendToDeviceEvent `json:"events"`
} `json:"to_device"` } `json:"to_device,omitempty"`
DeviceLists struct { DeviceLists struct {
Changed []string `json:"changed,omitempty"` Changed []string `json:"changed,omitempty"`
Left []string `json:"left,omitempty"` Left []string `json:"left,omitempty"`