Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(virtual-background) persist settings
Tudor D. Pop39011d8fd3cc
diff --git a/react/features/virtual-background/reducer.js b/react/features/virtual-background/reducer.jsindex 7357fe451d..df62798632 100644--- a/react/features/virtual-background/reducer.js+++ b/react/features/virtual-background/reducer.js@@ -1,9 +1,16 @@// @flow-import { ReducerRegistry } from '../base/redux';+import { PersistenceRegistry, ReducerRegistry } from '../base/redux';import { BACKGROUND_ENABLED, SET_VIRTUAL_BACKGROUND } from './actionTypes';+const STORE_NAME = 'features/virtual-background';++/**+ * Sets up the persistence of the feature {@code virtual-background}.+ */+PersistenceRegistry.register(STORE_NAME, true);+/*** Reduces redux actions which activate/deactivate virtual background image, or* indicate if the virtual image background is activated/deactivated. The@@ -15,7 +22,7 @@ import { BACKGROUND_ENABLED, SET_VIRTUAL_BACKGROUND } from './actionTypes';* @returns {State} The next redux state that is the result of reducing the* specified action.*/-ReducerRegistry.register('features/virtual-background', (state = {}, action) => {+ReducerRegistry.register(STORE_NAME, (state = {}, action) => {const { virtualSource, isVirtualBackground, backgroundEffectEnabled } = action;switch (action.type) {