paweldomas 4d942440db feat: add TestConnectionInfo for mobile
Adds TestConnectionInfo component which exposes some internal app state
to the jitsi-meet-torture through the UI accessibility layer. This
component will render only if config.testing.testMode is set to true.
2018-04-10 16:43:12 -05:00

21 lines
467 B
JavaScript

/* @flow */
import { SET_CONNECTION_STATE } from './actionTypes';
/**
* Sets the conference connection state of the testing feature.
*
* @param {string} connectionState - This is the lib-jitsi-meet event name. Can
* be on of:
* @returns {{
* type: SET_CONNECTION_STATE,
* connectionState: string
* }}
*/
export function setConnectionState(connectionState: string) {
return {
type: SET_CONNECTION_STATE,
connectionState
};
}