mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-18 04:13:10 -06:00
DStart with empty list for invite state
This commit is contained in:
parent
9688e4db6d
commit
44de862759
|
|
@ -254,6 +254,7 @@ type InviteResponse struct {
|
||||||
// NewInviteResponse creates an empty response with initialised arrays.
|
// NewInviteResponse creates an empty response with initialised arrays.
|
||||||
func NewInviteResponse(ev gomatrixserverlib.HeaderedEvent) *InviteResponse {
|
func NewInviteResponse(ev gomatrixserverlib.HeaderedEvent) *InviteResponse {
|
||||||
res := InviteResponse{}
|
res := InviteResponse{}
|
||||||
|
res.InviteState.Events = json.RawMessage{'[', ']'}
|
||||||
var unsigned struct {
|
var unsigned struct {
|
||||||
InviteRoomState json.RawMessage `json:"invite_room_state"`
|
InviteRoomState json.RawMessage `json:"invite_room_state"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue