jiti-meet/react/features/conference/functions.native.js

23 lines
482 B
JavaScript
Raw Normal View History

// @flow
import { toState } from '../base/redux';
2020-10-08 09:41:00 +00:00
export * from './functions.any';
/**
*
* Returns true if polls feature is disabled.
*
* @param {(Function|Object)} stateful - The (whole) redux state, or redux's
* {@code getState} function to be used to retrieve the state
* features/base/config.
* @returns {boolean}.
*/
export function getDisablePolls(stateful: Object) {
const state = toState(stateful)['features/base/config'];
return state.disablePolls;
}