From 44de862759ed9b4ff092b54ccfbc04ba0d6e9e38 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 22 Apr 2020 17:21:23 +0100 Subject: [PATCH] DStart with empty list for invite state --- syncapi/types/types.go | 1 + 1 file changed, 1 insertion(+) 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"` }