diff --git a/syncapi/types/types.go b/syncapi/types/types.go index c57d5f5ce..e0c3ee4f8 100644 --- a/syncapi/types/types.go +++ b/syncapi/types/types.go @@ -254,6 +254,7 @@ type InviteResponse struct { // NewInviteResponse creates an empty response with initialised arrays. func NewInviteResponse(ev gomatrixserverlib.HeaderedEvent) *InviteResponse { res := InviteResponse{} + res.InviteState.Events = json.RawMessage{'[', ']'} var unsigned struct { InviteRoomState json.RawMessage `json:"invite_room_state"` }