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
5336acd4
Commit
5336acd4
authored
8 years ago
by
David Baker
Browse files
Options
Downloads
Patches
Plain Diff
Make public room search case insensitive
parent
995f2f03
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/handlers/room_list.py
+4
-4
4 additions, 4 deletions
synapse/handlers/room_list.py
with
4 additions
and
4 deletions
synapse/handlers/room_list.py
+
4
−
4
View file @
5336acd4
...
...
@@ -361,12 +361,12 @@ class RoomListNextBatch(namedtuple("RoomListNextBatch", (
def
_matches_room_entry
(
room_entry
,
search_filter
):
if
search_filter
and
search_filter
.
get
(
"
generic_search_term
"
,
None
):
generic_search_term
=
search_filter
[
"
generic_search_term
"
]
if
generic_search_term
in
room_entry
.
get
(
"
name
"
,
""
):
generic_search_term
=
search_filter
[
"
generic_search_term
"
]
.
upper
()
if
generic_search_term
in
room_entry
.
get
(
"
name
"
,
""
)
.
upper
()
:
return
True
elif
generic_search_term
in
room_entry
.
get
(
"
topic
"
,
""
):
elif
generic_search_term
in
room_entry
.
get
(
"
topic
"
,
""
)
.
upper
()
:
return
True
elif
generic_search_term
in
room_entry
.
get
(
"
canonical_alias
"
,
""
):
elif
generic_search_term
in
room_entry
.
get
(
"
canonical_alias
"
,
""
)
.
upper
()
:
return
True
else
:
return
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