Fix the variable names used for account_data

This commit is contained in:
Nathan Pennie 2018-12-19 06:53:02 -05:00 committed by GitHub
parent 7e22cd90f5
commit 668e6625b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1668,13 +1668,13 @@ 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 +1745,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)