FIXUP: Removing awaitable

This commit is contained in:
David Teller 2021-01-28 12:23:19 +01:00
parent a764869623
commit b755f60ce2
1 changed files with 3 additions and 3 deletions

View File

@ -1033,10 +1033,10 @@ class RoomContextHandler:
users = await self.store.get_users_in_room(room_id) users = await self.store.get_users_in_room(room_id)
is_peeking = user.to_string() not in users is_peeking = user.to_string() not in users
def filter_evts(events): async def filter_evts(events):
if use_admin_priviledge: if use_admin_priviledge:
return maybe_awaitable(events) return events
return filter_events_for_client( return await filter_events_for_client(
self.storage, user.to_string(), events, is_peeking=is_peeking self.storage, user.to_string(), events, is_peeking=is_peeking
) )