Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jitsi-meet/react/features/screenshot-capture/reducer.js

26 lines
576 B

// @flow
import { PersistenceRegistry, ReducerRegistry } from '../base/redux';
import { SET_SCREENSHOT_CAPTURE } from './actionTypes';
PersistenceRegistry.register('features/screnshot-capture', true, {
capturesEnabled: false
});
const DEFAULT_STATE = {
capturesEnabled: false
};
ReducerRegistry.register('features/screenshot-capture', (state = DEFAULT_STATE, action) => {
switch (action.type) {
case SET_SCREENSHOT_CAPTURE: {
return {
...state,
capturesEnabled: action.payload
};
}
}
return state;
});