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

1234567891011121314151617181920212223
  1. import { PROFILE_UPDATED } from './actionTypes';
  2. /**
  3. * Create an action for when the local profile is updated.
  4. *
  5. * @param {Object} profile - The new profile data.
  6. * @returns {{
  7. * type: UPDATE_PROFILE,
  8. * profile: {
  9. * displayName: string,
  10. * defaultURL: URL,
  11. * email: string,
  12. * startWithAudioMuted: boolean,
  13. * startWithVideoMuted: boolean
  14. * }
  15. * }}
  16. */
  17. export function updateProfile(profile) {
  18. return {
  19. type: PROFILE_UPDATED,
  20. profile
  21. };
  22. }