snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
40
react/features/transcribing/actions.ts
Normal file
40
react/features/transcribing/actions.ts
Normal file
@@ -0,0 +1,40 @@
|
||||
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
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user