選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

actions.native.ts 921B

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