mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Ensure null is not sent when we mean []
This commit is contained in:
parent
425a5d4a2f
commit
e295c31ab7
@ -70,6 +70,12 @@ func (r *E2EERequest) ProcessInitial(ctx context.Context, res *Response, extCtx
|
|||||||
extRes.OTKCounts = dd.OTKCounts
|
extRes.OTKCounts = dd.OTKCounts
|
||||||
hasUpdates = true
|
hasUpdates = true
|
||||||
}
|
}
|
||||||
|
if dd.DeviceListChanged == nil {
|
||||||
|
dd.DeviceListChanged = make([]string, 0)
|
||||||
|
}
|
||||||
|
if dd.DeviceListLeft == nil {
|
||||||
|
dd.DeviceListLeft = make([]string, 0)
|
||||||
|
}
|
||||||
if len(dd.DeviceListChanged) > 0 || len(dd.DeviceListLeft) > 0 {
|
if len(dd.DeviceListChanged) > 0 || len(dd.DeviceListLeft) > 0 {
|
||||||
extRes.DeviceLists = &E2EEDeviceList{
|
extRes.DeviceLists = &E2EEDeviceList{
|
||||||
Changed: dd.DeviceListChanged,
|
Changed: dd.DeviceListChanged,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user