aboutsummaryrefslogtreecommitdiff
path: root/syncapi/types/types.go
diff options
context:
space:
mode:
authorKegsay <kegan@matrix.org>2020-07-27 09:19:55 +0100
committerGitHub <noreply@github.com>2020-07-27 09:19:55 +0100
commit61963a74ae84df94238cf384419acf4d59c311c1 (patch)
treeb079ce2234a79734d60da8f495218e4d4dee0960 /syncapi/types/types.go
parentabef9bc04f17fb1f0cfaf98f305588878fe9ee21 (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.go4
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.