您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }