Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

actions.native.ts 840B

1234567891011121314151617181920212223242526
  1. import { createRestrictWhiteboardEvent } from '../analytics/AnalyticsEvents';
  2. import { sendAnalytics } from '../analytics/functions';
  3. import { IStore } from '../app/types';
  4. import {
  5. navigate
  6. } from '../mobile/navigation/components/conference/ConferenceNavigationContainerRef';
  7. import { screen } from '../mobile/navigation/routes';
  8. import { resetWhiteboard } from './actions.any';
  9. export * from './actions.any';
  10. /**
  11. * Restricts the whiteboard usage.
  12. *
  13. * @param {boolean} shouldCloseWhiteboard - Whether to dismiss the whiteboard.
  14. * @returns {Function}
  15. */
  16. export const restrictWhiteboard = (shouldCloseWhiteboard = true) => (dispatch: IStore['dispatch']) => {
  17. if (shouldCloseWhiteboard) {
  18. navigate(screen.conference.root);
  19. }
  20. dispatch(resetWhiteboard());
  21. sendAnalytics(createRestrictWhiteboardEvent());
  22. };