Преглед на файлове

fix(breakout-rooms) reset rooms when conference is left or failed (#11447)

master
Mihaela Dumitru преди 3 години
родител
ревизия
72111114b6
No account linked to committer's email address
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2
    0
      react/features/base/tracks/middleware.js

+ 2
- 0
react/features/base/tracks/middleware.js Целия файл

@@ -5,6 +5,7 @@ import { batch } from 'react-redux';
5 5
 import UIEvents from '../../../../service/UI/UIEvents';
6 6
 import { showModeratedNotification } from '../../av-moderation/actions';
7 7
 import { shouldShowModeratedNotification } from '../../av-moderation/functions';
8
+import { _RESET_BREAKOUT_ROOMS } from '../../breakout-rooms/actionTypes';
8 9
 import { hideNotification, isModerationNotificationDisplayed } from '../../notifications';
9 10
 import { isPrejoinPageVisible } from '../../prejoin/functions';
10 11
 import { getCurrentConference } from '../conference/functions';
@@ -331,6 +332,7 @@ StateListenerRegistry.register(
331 332
                 for (const track of remoteTracks) {
332 333
                     dispatch(trackRemoved(track.jitsiTrack));
333 334
                 }
335
+                dispatch({ type: _RESET_BREAKOUT_ROOMS });
334 336
             });
335 337
         }
336 338
     });

Loading…
Отказ
Запис