12345678910111213141516171819202122232425 |
- import ReducerRegistry from '../../base/redux/ReducerRegistry';
-
- import { SCREEN_SHARE_PARTICIPANTS_UPDATED } from './actionTypes';
-
- export interface IMobileExternalApiState {
- screenShares: string[];
- }
-
- const DEFAULT_STATE = {
- screenShares: []
- };
-
- ReducerRegistry.register<IMobileExternalApiState>('features/mobile/external-api',
- (state = DEFAULT_STATE, action): IMobileExternalApiState => {
- switch (action.type) {
- case SCREEN_SHARE_PARTICIPANTS_UPDATED: {
- return {
- ...state,
- screenShares: action.participantIds
- };
- }
- }
-
- return state;
- });
|