mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-17 11:53:09 -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.
|
||||
func NewInviteResponse(ev gomatrixserverlib.HeaderedEvent) *InviteResponse {
|
||||
res := InviteResponse{}
|
||||
res.InviteState.Events = json.RawMessage{'[', ']'}
|
||||
var unsigned struct {
|
||||
InviteRoomState json.RawMessage `json:"invite_room_state"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue