summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-09-07 15:08:39 +0100
committerErik Johnston <erik@matrix.org>2017-09-07 15:08:39 +0100
commit53cc8ad35a269723478a1ee1a9a96d510a7b044f (patch)
tree36c8d8631ace5cc0ed871518da543a944b135404 /synapse/rest
parentMerge pull request #2439 from matrix-org/rav/tox_tweaks (diff)
downloadsynapse-53cc8ad35a269723478a1ee1a9a96d510a7b044f.tar.xz
Send down device list change notif when member leaves/rejoins room
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v2_alpha/sync.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/sync.py b/synapse/rest/client/v2_alpha/sync.py
index 2939896f44..978af9c280 100644
--- a/synapse/rest/client/v2_alpha/sync.py
+++ b/synapse/rest/client/v2_alpha/sync.py
@@ -189,7 +189,8 @@ class SyncRestServlet(RestServlet):
             "account_data": {"events": sync_result.account_data},
             "to_device": {"events": sync_result.to_device},
             "device_lists": {
-                "changed": list(sync_result.device_lists),
+                "changed": list(sync_result.device_lists.changed),
+                "left": list(sync_result.device_lists.left),
             },
             "presence": SyncRestServlet.encode_presence(
                 sync_result.presence, time_now