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

12345678910111213141516171819202122232425262728293031
  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. * avatarURL: string,
  11. * cameraDeviceId: string,
  12. * displayName: string,
  13. * email: string,
  14. * localFlipX: boolean,
  15. * micDeviceId: string,
  16. * serverURL: string,
  17. * soundsReactions: boolean,
  18. * startAudioOnly: boolean,
  19. * startWithAudioMuted: boolean,
  20. * startWithVideoMuted: boolean,
  21. * startWithReactionsMuted: boolean
  22. * }
  23. * }}
  24. */
  25. export function updateSettings(settings) {
  26. return {
  27. type: SETTINGS_UPDATED,
  28. settings
  29. };
  30. }