diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-11-28 20:35:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-28 20:35:22 +0000 |
commit | 78ec11c08562bfd635497621da238c7197e69b6f (patch) | |
tree | 0659bdfa6b858cd5ffaed304260156cebaf3fb4f /synapse | |
parent | Changelog (diff) | |
download | synapse-78ec11c08562bfd635497621da238c7197e69b6f.tar.xz |
Lint
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/visibility.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py index 7b037eeb0c..dffe943b28 100644 --- a/synapse/visibility.py +++ b/synapse/visibility.py @@ -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): """ |