mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-12 02:24:20 -05:00
FIXUP: Removing awaitable
This commit is contained in:
parent
a764869623
commit
b755f60ce2
@ -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
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user