From 7838d8acfebb87944140f11294e23169b317e0c6 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Mon, 7 Sep 2026 23:14:50 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20refetch=20waiting=20pa?= =?UTF-8?q?rticipants=20when=20the=20lobby=20becomes=20disabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the lobby is disabled mid-meeting (e.g. the room is switched to public), the waiting participants list stopped being refetched, so the previously cached list stayed visible with stale data. Trigger a refetch in that case as well, so the list is cleared and the moderator UI no longer shows waiting participants for a lobby that is no longer active. --- src/frontend/src/features/rooms/components/LobbyProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/features/rooms/components/LobbyProvider.tsx b/src/frontend/src/features/rooms/components/LobbyProvider.tsx index d01ebb5a..926a1aa1 100644 --- a/src/frontend/src/features/rooms/components/LobbyProvider.tsx +++ b/src/frontend/src/features/rooms/components/LobbyProvider.tsx @@ -79,7 +79,7 @@ export const LobbyProvider = () => { // 3. Rights regained. const prevCanManageLobby = usePrevious(canManageLobby) useEffect(() => { - if (!prevCanManageLobby && canManageLobby && isConnected) { + if (prevCanManageLobby != canManageLobby && isConnected) { fetchIfManager() } }, [