You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

actions.js 966B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // @flow
  2. import {
  3. SCREEN_SHARE_PARTICIPANTS_UPDATED,
  4. SET_TILE_VIEW
  5. } from './actionTypes';
  6. /**
  7. * Creates a (redux) action which signals that the list of known participants
  8. * with screen shares has changed.
  9. *
  10. * @param {string} participantIds - The participants which currently have active
  11. * screen share streams.
  12. * @returns {{
  13. * type: SCREEN_SHARE_PARTICIPANTS_UPDATED,
  14. * participantId: string
  15. * }}
  16. */
  17. export function setParticipantsWithScreenShare(participantIds: Array<string>) {
  18. return {
  19. type: SCREEN_SHARE_PARTICIPANTS_UPDATED,
  20. participantIds
  21. };
  22. }
  23. /**
  24. * Creates a (redux) action which signals to set the UI layout to be tiled view
  25. * or not.
  26. *
  27. * @param {boolean} enabled - Whether or not tile view should be shown.
  28. * @returns {{
  29. * type: SET_TILE_VIEW,
  30. * enabled: boolean
  31. * }}
  32. */
  33. export function setTileView(enabled: boolean) {
  34. return {
  35. type: SET_TILE_VIEW,
  36. enabled
  37. };
  38. }