fix(base/conference): do not execute leave conference on web

On web CONFERENCE_FAILED handlers are not setting the 'recoverable'
flag thus any middleware which rely on those should not execute on web.
This commit is contained in:
paweldomas 2018-06-20 09:44:56 +02:00 committed by Дамян Минков
parent 146ffb0918
commit 675eea7b99
1 changed files with 7 additions and 0 deletions

View File

@ -108,6 +108,13 @@ MiddlewareRegistry.register(store => next => action => {
function _conferenceFailed(store, next, action) {
const result = next(action);
// FIXME: Workaround for the web version. Currently, the creation of the
// conference is handled by /conference.js and appropriate failure handlers
// are set there.
if (typeof APP !== 'undefined') {
return result;
}
// XXX After next(action), it is clear whether the error is recoverable.
const { conference, error } = action;