fix(rn,filmstrip) fix dropping tiles on conference join

This commit is contained in:
Saúl Ibarra Corretgé 2022-10-21 16:33:51 +02:00
parent 12c07dc164
commit 65e08a5397
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
// @flow
import { getCurrentConference } from '../base/conference/functions';
import { StateListenerRegistry } from '../base/redux';
import { shouldDisplayTileView } from '../video-layout';
@ -35,7 +36,7 @@ StateListenerRegistry.register(
* Listens for changes in the current conference and clears remote participants from this feature.
*/
StateListenerRegistry.register(
state => state['features/base/conference'].conference,
state => getCurrentConference(state),
(conference, { dispatch }, previousConference) => {
if (conference !== previousConference) {
dispatch(setRemoteParticipants([]));