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

actions.native.ts 841B

12345678910111213141516171819202122232425262728293031
  1. import { IParticipant } from '../base/participants/types';
  2. import { navigate }
  3. from '../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
  4. import { screen } from '../mobile/navigation/routes';
  5. import { OPEN_CHAT } from './actionTypes';
  6. export * from './actions.any';
  7. /**
  8. * Displays the chat panel.
  9. *
  10. * @param {Object} participant - The recipient for the private chat.
  11. * @param {boolean} disablePolls - Checks if polls are disabled.
  12. *
  13. * @returns {{
  14. * participant: participant,
  15. * type: OPEN_CHAT
  16. * }}
  17. */
  18. export function openChat(participant: IParticipant | undefined | Object, disablePolls?: boolean) {
  19. if (disablePolls) {
  20. navigate(screen.conference.chat);
  21. }
  22. navigate(screen.conference.chatandpolls.main);
  23. return {
  24. participant,
  25. type: OPEN_CHAT
  26. };
  27. }