diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-09-13 07:57:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-13 07:57:19 -0400 |
commit | d38d0dffc94b6269ed7ff5163d60958be3e6c304 (patch) | |
tree | d793f714887dfdceee8b27b678e6c03e3288a2bc /synapse/visibility.py | |
parent | Don't schedule an async task on every sync (#16312) (diff) | |
download | synapse-d38d0dffc94b6269ed7ff5163d60958be3e6c304.tar.xz |
Use StrCollection in additional places. (#16301)
Diffstat (limited to 'synapse/visibility.py')
-rw-r--r-- | synapse/visibility.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py index eac10f6438..f15fdd8314 100644 --- a/synapse/visibility.py +++ b/synapse/visibility.py @@ -36,7 +36,7 @@ from synapse.events.utils import prune_event from synapse.logging.opentracing import trace from synapse.storage.controllers import StorageControllers from synapse.storage.databases.main import DataStore -from synapse.types import RetentionPolicy, StateMap, get_domain_from_id +from synapse.types import RetentionPolicy, StateMap, StrCollection, get_domain_from_id from synapse.types.state import StateFilter from synapse.util import Clock @@ -150,12 +150,12 @@ async def filter_events_for_client( async def filter_event_for_clients_with_state( store: DataStore, - user_ids: Collection[str], + user_ids: StrCollection, event: EventBase, context: EventContext, is_peeking: bool = False, filter_send_to_client: bool = True, -) -> Collection[str]: +) -> StrCollection: """ Checks to see if an event is visible to the users in the list at the time of the event. |