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

123456789101112131415161718192021222324252627282930
  1. import { SETTINGS_UPDATED } from './actionTypes';
  2. /**
  3. * Create an action for when the settings are updated.
  4. *
  5. * @param {Object} settings - The new (partial) settings properties.
  6. * @returns {{
  7. * type: SETTINGS_UPDATED,
  8. * settings: {
  9. * audioOutputDeviceId: string,
  10. * avatarID: string,
  11. * avatarURL: string,
  12. * cameraDeviceId: string,
  13. * displayName: string,
  14. * email: string,
  15. * localFlipX: boolean,
  16. * micDeviceId: string,
  17. * serverURL: string,
  18. * startAudioOnly: boolean,
  19. * startWithAudioMuted: boolean,
  20. * startWithVideoMuted: boolean
  21. * }
  22. * }}
  23. */
  24. export function updateSettings(settings) {
  25. return {
  26. type: SETTINGS_UPDATED,
  27. settings
  28. };
  29. }