diff options
author | David Robertson <davidr@element.io> | 2023-02-03 20:03:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-03 20:03:23 +0000 |
commit | 6e6edea6c15dc1a15f44d9e92d334e3ce0f827dd (patch) | |
tree | 5af175c1fb876db61855826d329d4f4434e32452 /synapse/api | |
parent | Implement MSC3958: suppress notifications from edits (#14960) (diff) | |
download | synapse-6e6edea6c15dc1a15f44d9e92d334e3ce0f827dd.tar.xz |
Properly typecheck tests.api (#14983)
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/filtering.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/api/filtering.py b/synapse/api/filtering.py index 2b5af264b4..83c42fc25a 100644 --- a/synapse/api/filtering.py +++ b/synapse/api/filtering.py @@ -252,9 +252,9 @@ class FilterCollection: return self._room_timeline_filter.unread_thread_notifications async def filter_presence( - self, events: Iterable[UserPresenceState] + self, presence_states: Iterable[UserPresenceState] ) -> List[UserPresenceState]: - return await self._presence_filter.filter(events) + return await self._presence_filter.filter(presence_states) async def filter_account_data(self, events: Iterable[JsonDict]) -> List[JsonDict]: return await self._account_data.filter(events) |