This commit is contained in:
Brendan Abolivier 2019-11-28 20:35:22 +00:00 committed by GitHub
parent 5ee2beeddb
commit 78ec11c085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,11 @@ MEMBERSHIP_PRIORITY = (
@defer.inlineCallbacks @defer.inlineCallbacks
def filter_events_for_client( def filter_events_for_client(
storage: Storage, user_id, events, is_peeking=False, always_include_ids=frozenset(), storage: Storage,
user_id,
events,
is_peeking=False,
always_include_ids=frozenset(),
apply_retention_policies=True, apply_retention_policies=True,
): ):
""" """
@ -96,9 +100,9 @@ def filter_events_for_client(
retention_policies = {} retention_policies = {}
for room_id in room_ids: for room_id in room_ids:
retention_policies[room_id] = ( retention_policies[
yield storage.main.get_retention_policy_for_room(room_id) room_id
) ] = yield storage.main.get_retention_policy_for_room(room_id)
def allowed(event): def allowed(event):
""" """