Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
b755f60c
Commit
b755f60c
authored
4 years ago
by
David Teller
Browse files
Options
Downloads
Patches
Plain Diff
FIXUP: Removing awaitable
parent
a7648696
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/handlers/room.py
+3
-3
3 additions, 3 deletions
synapse/handlers/room.py
with
3 additions
and
3 deletions
synapse/handlers/room.py
+
3
−
3
View file @
b755f60c
...
@@ -1033,10 +1033,10 @@ class RoomContextHandler:
...
@@ -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
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment