Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

actions.ts 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import {
  2. TRANSCRIBER_JOINED,
  3. TRANSCRIBER_LEFT
  4. } from './actionTypes';
  5. /**
  6. * Notify that the transcriber, with a unique ID, has joined.
  7. *
  8. * @param {string} participantId - The participant id of the transcriber.
  9. * @returns {{
  10. * type: TRANSCRIBER_JOINED,
  11. * participantId: string
  12. * }}
  13. */
  14. export function transcriberJoined(participantId: string) {
  15. return {
  16. type: TRANSCRIBER_JOINED,
  17. transcriberJID: participantId
  18. };
  19. }
  20. /**
  21. * Notify that the transcriber, with a unique ID, has left.
  22. *
  23. * @param {string} participantId - The participant id of the transcriber.
  24. * @param {boolean} abruptly - The transcriber did not exit the conference gracefully with switching off first.
  25. * It maybe there was some backend problem, like network.
  26. * @returns {{
  27. * type: TRANSCRIBER_LEFT,
  28. * participantId: string,
  29. * abruptly: boolean
  30. * }}
  31. */
  32. export function transcriberLeft(participantId: string, abruptly: boolean) {
  33. return {
  34. type: TRANSCRIBER_LEFT,
  35. transcriberJID: participantId,
  36. abruptly
  37. };
  38. }