Files
upstream-jitsi-meet/react/features/follow-me/functions.ts
upstream-mirror 1d2bfcac0c
Some checks failed
Prosody Plugin Tests / test (push) Failing after 10m11s
Close stale issues and PRs / stale (push) Failing after 1s
snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
2026-09-15 15:56:32 +05:00

29 lines
931 B
TypeScript

import { IStateful } from '../base/app/types';
import { toState } from '../base/redux/functions';
/**
* 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: IStateful) {
const state = toState(stateful);
return Boolean(state['features/follow-me'].moderator);
}
/**
* Returns true if follow me is active only for the recorder 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 isFollowMeRecorderActive(stateful: IStateful) {
const state = toState(stateful);
return Boolean(state['features/follow-me'].recorder);
}