Files
upstream-jitsi-meet/react/features/transcribing/actions.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

41 lines
1.0 KiB
TypeScript

import {
TRANSCRIBER_JOINED,
TRANSCRIBER_LEFT
} from './actionTypes';
/**
* Notify that the transcriber, with a unique ID, has joined.
*
* @param {string} participantId - The participant id of the transcriber.
* @returns {{
* type: TRANSCRIBER_JOINED,
* participantId: string
* }}
*/
export function transcriberJoined(participantId: string) {
return {
type: TRANSCRIBER_JOINED,
transcriberJID: participantId
};
}
/**
* Notify that the transcriber, with a unique ID, has left.
*
* @param {string} participantId - The participant id of the transcriber.
* @param {boolean} abruptly - The transcriber did not exit the conference gracefully with switching off first.
* It maybe there was some backend problem, like network.
* @returns {{
* type: TRANSCRIBER_LEFT,
* participantId: string,
* abruptly: boolean
* }}
*/
export function transcriberLeft(participantId: string, abruptly: boolean) {
return {
type: TRANSCRIBER_LEFT,
transcriberJID: participantId,
abruptly
};
}