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 715B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // @flow
  2. import {
  3. SET_FOLLOW_ME_MODERATOR,
  4. SET_FOLLOW_ME_STATE
  5. } from './actionTypes';
  6. /**
  7. * Sets the current moderator id or clears it.
  8. *
  9. * @param {?string} id - The Follow Me moderator participant id.
  10. * @returns {{
  11. * type: SET_FOLLOW_ME_MODERATOR,
  12. * id, string
  13. * }}
  14. */
  15. export function setFollowMeModerator(id: ?string) {
  16. return {
  17. type: SET_FOLLOW_ME_MODERATOR,
  18. id
  19. };
  20. }
  21. /**
  22. * Sets the Follow Me feature state.
  23. *
  24. * @param {?Object} state - The current state.
  25. * @returns {{
  26. * type: SET_FOLLOW_ME_STATE,
  27. * state: Object
  28. * }}
  29. */
  30. export function setFollowMeState(state: ?Object) {
  31. return {
  32. type: SET_FOLLOW_ME_STATE,
  33. state
  34. };
  35. }