Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

606 B
Raw Blame
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;
});