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

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* @flow */
  2. import { LOAD_CONFIG_ERROR, SET_CONFIG } from './actionTypes';
  3. /**
  4. * Signals an error when loading the configuration.
  5. *
  6. * @param {Error} error - The error which caused the config to not be loaded.
  7. * @returns {{
  8. * type: LOAD_CONFIG_ERROR,
  9. * error: Error
  10. * }}
  11. */
  12. export function loadConfigError(error: Error) {
  13. return {
  14. type: LOAD_CONFIG_ERROR,
  15. error
  16. };
  17. }
  18. /**
  19. * Sets the configuration represented by the feature base/config. The
  20. * configuration is defined and consumed by the library lib-jitsi-meet but some
  21. * of its properties are consumed by the application jitsi-meet as well.
  22. *
  23. * @param {Object} config - The configuration to be represented by the feature
  24. * base/config.
  25. * @returns {{
  26. * type: SET_CONFIG,
  27. * config: Object
  28. * }}
  29. */
  30. export function setConfig(config: Object = {}) {
  31. return {
  32. type: SET_CONFIG,
  33. config
  34. };
  35. }