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.js 679B

1234567891011121314151617181920212223242526
  1. import { MiddlewareRegistry } from '../base/redux';
  2. import { UPDATE_DIAL_IN_NUMBERS_FAILED } from './actionTypes';
  3. const logger = require('jitsi-meet-logger').getLogger(__filename);
  4. /**
  5. * Middleware that catches actions fetching dial-in numbers.
  6. *
  7. * @param {Store} store - Redux store.
  8. * @returns {Function}
  9. */
  10. // eslint-disable-next-line no-unused-vars
  11. MiddlewareRegistry.register(store => next => action => {
  12. const result = next(action);
  13. switch (action.type) {
  14. case UPDATE_DIAL_IN_NUMBERS_FAILED:
  15. logger.error(
  16. 'Error encountered while fetching dial-in numbers:',
  17. action.error);
  18. break;
  19. }
  20. return result;
  21. });