mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-17 03:43:11 -06:00
Really don't send nulls for invite state
This commit is contained in:
parent
fa618e76b6
commit
68b6524e14
|
|
@ -260,7 +260,7 @@ func NewInviteResponse(ev gomatrixserverlib.HeaderedEvent) *InviteResponse {
|
||||||
if err := json.Unmarshal(ev.Unsigned(), &unsigned); err == nil {
|
if err := json.Unmarshal(ev.Unsigned(), &unsigned); err == nil {
|
||||||
res.InviteState.Events = unsigned.InviteRoomState
|
res.InviteState.Events = unsigned.InviteRoomState
|
||||||
}
|
}
|
||||||
if res.InviteState.Events == nil {
|
if len(res.InviteState.Events) == 0 || res.InviteState.Events == nil {
|
||||||
res.InviteState.Events = json.RawMessage{'[', ']'}
|
res.InviteState.Events = json.RawMessage{'[', ']'}
|
||||||
}
|
}
|
||||||
return &res
|
return &res
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue