mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-11 05:14:19 -05:00
Lint
This commit is contained in:
parent
5ee2beeddb
commit
78ec11c085
@ -44,7 +44,11 @@ MEMBERSHIP_PRIORITY = (
|
||||
|
||||
@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,
|
||||
):
|
||||
"""
|
||||
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user