summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-12-19 22:52:59 +0100
committerGitHub <noreply@github.com>2018-12-19 22:52:59 +0100
commit3b2ba2fbb80c9f7f51c77e6f4a5399fdc282e144 (patch)
treea6624d5285c03d0e19c16bf16164f1be4fbc7532 /synapse/handlers
parentensure can report mau stats when hs.config.mau_stats_only is set (#4305) (diff)
parentCreate 4309.bugfix (diff)
downloadsynapse-3b2ba2fbb80c9f7f51c77e6f4a5399fdc282e144.tar.xz
Merge pull request #4309 from KB1RD/KB1RD-fixes
Fix the variable names used for account_data
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/sync.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 09739f2862..f7f768f751 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -1668,13 +1668,17 @@ class SyncHandler(object):
                 "content": content,
             })
 
-        account_data = sync_config.filter_collection.filter_room_account_data(
+        account_data_events = sync_config.filter_collection.filter_room_account_data(
             account_data_events
         )
 
         ephemeral = sync_config.filter_collection.filter_room_ephemeral(ephemeral)
 
-        if not (always_include or batch or account_data or ephemeral or full_state):
+        if not (always_include
+                or batch
+                or account_data_events
+                or ephemeral
+                or full_state):
             return
 
         state = yield self.compute_state_delta(
@@ -1745,7 +1749,7 @@ class SyncHandler(object):
                 room_id=room_id,
                 timeline=batch,
                 state=state,
-                account_data=account_data,
+                account_data=account_data_events,
             )
             if room_sync or always_include:
                 sync_result_builder.archived.append(room_sync)