Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
40c22716
Commit
40c22716
authored
6 years ago
by
Andrew Morgan
Browse files
Options
Downloads
Patches
Plain Diff
Clean up room chunk logic
parent
6728bf39
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_list.py
+8
-6
8 additions, 6 deletions
synapse/handlers/room_list.py
with
8 additions
and
6 deletions
synapse/handlers/room_list.py
+
8
−
6
View file @
40c22716
...
...
@@ -327,13 +327,15 @@ class RoomListHandler(BaseHandler):
return
result
=
yield
self
.
generate_room_entry
(
room_id
,
num_joined_users
)
if
not
result
:
return
if
from_federation
:
if
not
result
or
result
[
"
m.federate
"
]
is
False
:
#
T
his
is a non-federating room and the config has chosen not
# to show these rooms to other servers
return
elif
result
and
_matches_room_entry
(
result
,
search_filter
):
if
from_federation
and
result
[
"
m.federate
"
]
is
False
:
# This is a room that other servers cannot join. Do not show them
#
t
his
room.
return
if
_matches_room_entry
(
result
,
search_filter
):
chunk
.
append
(
result
)
@cachedInlineCallbacks
(
num_args
=
2
,
cache_context
=
True
)
...
...
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