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.ts 905B

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