Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
babolivier authored Nov 28, 2019
1 parent 5ee2bee commit 78ec11c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions synapse/visibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@

@defer.inlineCallbacks
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,
):
"""
Expand Down Expand Up @@ -96,9 +100,9 @@ def filter_events_for_client(
retention_policies = {}

for room_id in room_ids:
retention_policies[room_id] = (
yield storage.main.get_retention_policy_for_room(room_id)
)
retention_policies[
room_id
] = yield storage.main.get_retention_policy_for_room(room_id)

def allowed(event):
"""
Expand Down

0 comments on commit 78ec11c

Please sign in to comment.