fix: Fixes muted state for moderators when login (secure-domain).

This commit is contained in:
Дамян Минков 2021-12-23 11:57:05 -06:00
parent 804573e9aa
commit 348414cc84
1 changed files with 4 additions and 1 deletions

View File

@ -216,7 +216,10 @@ MiddlewareRegistry.register(store => next => action => {
StateListenerRegistry.register(
state => getCurrentConference(state),
(conference, { dispatch, getState }, prevConference) => {
if (prevConference && !conference) {
// conference keep flipping while we are authenticating, skip clearing while we are in that process
if (prevConference && !conference && !getState()['features/base/conference'].authRequired) {
// Clear all tracks.
const remoteTracks = getState()['features/base/tracks'].filter(t => !t.local);