diff options
author | Kegsay <kegan@matrix.org> | 2020-07-27 09:19:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 09:19:55 +0100 |
commit | 61963a74ae84df94238cf384419acf4d59c311c1 (patch) | |
tree | b079ce2234a79734d60da8f495218e4d4dee0960 /syncapi/types/types.go | |
parent | abef9bc04f17fb1f0cfaf98f305588878fe9ee21 (diff) |
Add logic for determining when device lists have changed due to membership changes (#1220)
* Flesh out structure for handling device list updates for room membership changes
* First cut untested algorithm
* Add tests for determining changed/left device lists
* Linting
* Unbreak tests
* Sigh.. linting
Diffstat (limited to 'syncapi/types/types.go')
-rw-r--r-- | syncapi/types/types.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/syncapi/types/types.go b/syncapi/types/types.go index 019f2e69..7dc02281 100644 --- a/syncapi/types/types.go +++ b/syncapi/types/types.go @@ -302,6 +302,10 @@ type Response struct { ToDevice struct { Events []gomatrixserverlib.SendToDeviceEvent `json:"events"` } `json:"to_device"` + DeviceLists struct { + Changed []string `json:"changed,omitempty"` + Left []string `json:"left,omitempty"` + } `json:"device_lists,omitempty"` } // NewResponse creates an empty response with initialised maps. |