mirror of https://github.com/jitsi/jitsi-meet
parent
9ad87f3706
commit
13f76c2cce
@ -0,0 +1,16 @@ |
||||
// @flow
|
||||
|
||||
import { toState } from '../base/redux'; |
||||
|
||||
/** |
||||
* Returns true if follow me is active and false otherwise. |
||||
* |
||||
* @param {Object|Function} stateful - Object or function that can be resolved |
||||
* to the Redux state. |
||||
* @returns {boolean} - True if follow me is active and false otherwise. |
||||
*/ |
||||
export function isFollowMeActive(stateful: Object | Function) { |
||||
const state = toState(stateful); |
||||
|
||||
return Boolean(state['features/follow-me'].moderator); |
||||
} |
Loading…
Reference in new issue