From f7ba5edb3ac427c47a89535af89eb74f55d4ed31 Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Fri, 28 Aug 2026 16:52:51 +0530 Subject: [PATCH] copy room list before sorting in home and direct tab --- src/app/pages/client/direct/Direct.tsx | 2 +- src/app/pages/client/home/Home.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/pages/client/direct/Direct.tsx b/src/app/pages/client/direct/Direct.tsx index 287198d0..e6b25e49 100644 --- a/src/app/pages/client/direct/Direct.tsx +++ b/src/app/pages/client/direct/Direct.tsx @@ -203,7 +203,7 @@ export function Direct() { const sortedDirects = useMemo(() => { if (closedCategories.has(DEFAULT_CATEGORY_ID)) { - return directs + return Array.from(directs) .filter((roomId) => { if (roomId === selectedRoomId) return true; const notification = roomToNotifications.get(roomId); diff --git a/src/app/pages/client/home/Home.tsx b/src/app/pages/client/home/Home.tsx index 7e9942ef..09536bea 100644 --- a/src/app/pages/client/home/Home.tsx +++ b/src/app/pages/client/home/Home.tsx @@ -228,7 +228,7 @@ export function Home() { const sortedRooms = useMemo(() => { if (closedCategories.has(DEFAULT_CATEGORY_ID)) { - return rooms + return Array.from(rooms) .filter((roomId) => { if (roomId === selectedRoomId) return true; const notification = roomToNotifications.get(roomId);