aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-12-03 11:49:33 -0600
committerGitHub <noreply@github.com>2025-12-03 11:49:33 -0600
commit29d01c864c5e3cc5e272bf3681fb8c8fdd97412c (patch)
tree5734b29f0df35f1632aa96499a97e1f323ee0f4e
parent5d89a4f0dc609f1917bb075945afed95f9693cbc (diff)
parent52fee458c232fb2146f2b11a152994482db96980 (diff)
downloadslskd-29d01c864c5e3cc5e272bf3681fb8c8fdd97412c.tar.gz
Merge pull request #1556 from slskd/copilot/adapt-chat-filter-case-insensitive
Make chat rooms search filter case-insensitive
-rw-r--r--src/web/src/components/Rooms/RoomJoinModal.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web/src/components/Rooms/RoomJoinModal.jsx b/src/web/src/components/Rooms/RoomJoinModal.jsx
index 39c46248..5a6cf0c2 100644
--- a/src/web/src/components/Rooms/RoomJoinModal.jsx
+++ b/src/web/src/components/Rooms/RoomJoinModal.jsx
@@ -33,7 +33,9 @@ const RoomJoinModal = ({ joinRoom: parentJoinRoom, ...modalOptions }) => {
}, [open]);
const sortedAvailable = useMemo(() => {
- const sorted = [...available].filter((room) => room.name.includes(filter));
+ const sorted = [...available].filter((room) =>
+ room.name.toLowerCase().includes(filter.toLowerCase()),
+ );
sorted.sort((a, b) => {
if (sortOrder === 'asc') {