DStart with empty list for invite state

This commit is contained in:
Neil Alexander 2020-04-22 17:21:23 +01:00
parent 9688e4db6d
commit 44de862759

View file

@ -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"`
}