fix(blur): Disable blur on conference leave

This commit is contained in:
Jaya Allamsetty 2020-03-23 14:57:46 -04:00 committed by Jaya Allamsetty
parent b3a7f5f38b
commit 58018a086c
1 changed files with 7 additions and 0 deletions

View File

@ -111,6 +111,7 @@ import {
trackRemoved
} from './react/features/base/tracks';
import { getJitsiMeetGlobalNS } from './react/features/base/util';
import { toggleBlurEffect } from './react/features/blur';
import { showDesktopPicker } from './react/features/desktop-picker';
import { appendSuffix } from './react/features/display-name';
import {
@ -2701,6 +2702,12 @@ export default {
this._stopProxyConnection();
// Set blur to disabled if it was enabled during the call.
const blurEnabled = APP.store.getState()['features/blur']?.blurEnabled;
if (blurEnabled) {
APP.store.dispatch(toggleBlurEffect(false));
}
APP.store.dispatch(destroyLocalTracks());
this._localTracksInitialized = false;
this.localVideo = null;