mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
* feat(subtitles): created separate helpers for delegating transcription chunks events on web and mobile
13 lines
436 B
TypeScript
13 lines
436 B
TypeScript
import { IReduxState } from '../app/types';
|
|
import { canAddTranscriber, isTranscribing } from '../transcribing/functions';
|
|
|
|
/**
|
|
* Checks whether the participant can start the subtitles.
|
|
*
|
|
* @param {IReduxState} state - The redux state.
|
|
* @returns {boolean} - True if the participant can start the subtitles.
|
|
*/
|
|
export function canStartSubtitles(state: IReduxState) {
|
|
return canAddTranscriber(state) || isTranscribing(state);
|
|
}
|