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.native.js 516B

12345678910111213141516171819202122
  1. import { batch } from 'react-redux';
  2. import { appNavigate } from '../app/actions';
  3. import { hideLobbyScreen, setKnockingState } from './actions.any';
  4. export * from './actions.any';
  5. /**
  6. * Cancels the ongoing knocking and abandons the join flow.
  7. *
  8. * @returns {Function}
  9. */
  10. export function cancelKnocking() {
  11. return dispatch => {
  12. batch(() => {
  13. dispatch(setKnockingState(false));
  14. dispatch(hideLobbyScreen());
  15. dispatch(appNavigate(undefined));
  16. });
  17. };
  18. }