mirror of
https://github.com/suitenumerique/meet.git
synced 2026-09-08 08:25:55 +00:00
🐛(frontend) refetch waiting participants when the lobby becomes disabled
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.
This commit is contained in:
committed by
aleb_the_flash
parent
3bb388b937
commit
7838d8acfe
@@ -79,7 +79,7 @@ export const LobbyProvider = () => {
|
||||
// 3. Rights regained.
|
||||
const prevCanManageLobby = usePrevious(canManageLobby)
|
||||
useEffect(() => {
|
||||
if (!prevCanManageLobby && canManageLobby && isConnected) {
|
||||
if (prevCanManageLobby != canManageLobby && isConnected) {
|
||||
fetchIfManager()
|
||||
}
|
||||
}, [
|
||||
|
||||
Reference in New Issue
Block a user