From 6fabcbc010478094a8a39299c58c8a5e5d497057 Mon Sep 17 00:00:00 2001 From: Nathan Pennie Date: Tue, 18 Dec 2018 19:56:49 -0500 Subject: [PATCH] Fix the variable names used for account_data --- synapse/handlers/sync.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index 09739f2862ee..6d2b4096ab3d 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -1668,13 +1668,13 @@ def _generate_room_entry(self, sync_result_builder, ignored_users, "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 +1745,7 @@ def _generate_room_entry(self, sync_result_builder, ignored_users, 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)