Ver código fonte

fix(blur): Disable blur on conference leave

master
Jaya Allamsetty 5 anos atrás
pai
commit
58018a086c
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7
    0
      conference.js

+ 7
- 0
conference.js Ver arquivo

@@ -111,6 +111,7 @@ import {
111 111
     trackRemoved
112 112
 } from './react/features/base/tracks';
113 113
 import { getJitsiMeetGlobalNS } from './react/features/base/util';
114
+import { toggleBlurEffect } from './react/features/blur';
114 115
 import { showDesktopPicker } from './react/features/desktop-picker';
115 116
 import { appendSuffix } from './react/features/display-name';
116 117
 import {
@@ -2701,6 +2702,12 @@ export default {
2701 2702
 
2702 2703
         this._stopProxyConnection();
2703 2704
 
2705
+        // Set blur to disabled if it was enabled during the call.
2706
+        const blurEnabled = APP.store.getState()['features/blur']?.blurEnabled;
2707
+
2708
+        if (blurEnabled) {
2709
+            APP.store.dispatch(toggleBlurEffect(false));
2710
+        }
2704 2711
         APP.store.dispatch(destroyLocalTracks());
2705 2712
         this._localTracksInitialized = false;
2706 2713
         this.localVideo = null;

Carregando…
Cancelar
Salvar