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(tile-view): persist setting in local storage (#3379)
virtuacoplennyfe7652ec90b2
diff --git a/react/features/video-layout/functions.js b/react/features/video-layout/functions.jsindex 31cdf97eda..42f93856f4 100644--- a/react/features/video-layout/functions.js+++ b/react/features/video-layout/functions.js@@ -74,5 +74,11 @@ export function shouldDisplayTileView(state: Object = {}) {state['features/video-layout']&& state['features/video-layout'].tileViewEnabled&& !state['features/etherpad'].editing++ // Truthy check is needed for interfaceConfig to prevent errors on+ // mobile which does not have interfaceConfig. On web, tile view+ // should never be enabled for filmstrip only mode.+ && (typeof interfaceConfig === 'undefined'+ || !interfaceConfig.filmStripOnly));}diff --git a/react/features/video-layout/reducer.js b/react/features/video-layout/reducer.jsindex dc99f4018e..699320c069 100644--- a/react/features/video-layout/reducer.js+++ b/react/features/video-layout/reducer.js@@ -1,10 +1,15 @@// @flowimport { ReducerRegistry } from '../base/redux';+import { PersistenceRegistry } from '../base/storage';import { SET_TILE_VIEW } from './actionTypes';-ReducerRegistry.register('features/video-layout', (state = {}, action) => {+const STORE_NAME = 'features/video-layout';++PersistenceRegistry.register(STORE_NAME);++ReducerRegistry.register(STORE_NAME, (state = {}, action) => {switch (action.type) {case SET_TILE_VIEW:return {