mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-23 20:09:23 -05:00
Make public room search case insensitive
This commit is contained in:
parent
995f2f032f
commit
5336acd46f
@ -361,12 +361,12 @@ class RoomListNextBatch(namedtuple("RoomListNextBatch", (
|
|||||||
|
|
||||||
def _matches_room_entry(room_entry, search_filter):
|
def _matches_room_entry(room_entry, search_filter):
|
||||||
if search_filter and search_filter.get("generic_search_term", None):
|
if search_filter and search_filter.get("generic_search_term", None):
|
||||||
generic_search_term = search_filter["generic_search_term"]
|
generic_search_term = search_filter["generic_search_term"].upper()
|
||||||
if generic_search_term in room_entry.get("name", ""):
|
if generic_search_term in room_entry.get("name", "").upper():
|
||||||
return True
|
return True
|
||||||
elif generic_search_term in room_entry.get("topic", ""):
|
elif generic_search_term in room_entry.get("topic", "").upper():
|
||||||
return True
|
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
|
return True
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
Loading…
Reference in New Issue
Block a user