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.

middleware.any.js 720B

1234567891011121314151617181920212223242526272829
  1. // @flow
  2. import { MiddlewareRegistry } from '../base/redux';
  3. import { UPDATE_DIAL_IN_NUMBERS_FAILED } from './actionTypes';
  4. const logger = require('jitsi-meet-logger').getLogger(__filename);
  5. /**
  6. * The middleware of the feature invite common to mobile/react-native and
  7. * Web/React.
  8. *
  9. * @param {Store} store - The redux store.
  10. * @returns {Function}
  11. */
  12. // eslint-disable-next-line no-unused-vars
  13. MiddlewareRegistry.register(store => next => action => {
  14. const result = next(action);
  15. switch (action.type) {
  16. case UPDATE_DIAL_IN_NUMBERS_FAILED:
  17. logger.error(
  18. 'Error encountered while fetching dial-in numbers:',
  19. action.error);
  20. break;
  21. }
  22. return result;
  23. });