diff options
author | David Teller <d.o.teller+github@gmail.com> | 2021-01-28 12:23:19 +0100 |
---|---|---|
committer | David Teller <d.o.teller+github@gmail.com> | 2021-01-28 12:31:07 +0100 |
commit | b755f60ce2fb651356d8d588dcd7864b022023cd (patch) | |
tree | 89a8a26174ed0a55416924d004854a81fca2aa65 | |
parent | FIXUP: Doc (diff) | |
download | synapse-b755f60ce2fb651356d8d588dcd7864b022023cd.tar.xz |
FIXUP: Removing awaitable
-rw-r--r-- | synapse/handlers/room.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index b02056dc63..c103488076 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -1033,10 +1033,10 @@ class RoomContextHandler: users = await self.store.get_users_in_room(room_id) is_peeking = user.to_string() not in users - def filter_evts(events): + async def filter_evts(events): if use_admin_priviledge: - return maybe_awaitable(events) - return filter_events_for_client( + return events + return await filter_events_for_client( self.storage, user.to_string(), events, is_peeking=is_peeking ) |