feat(errors): fix error handling for connection and conference
This commit is contained in:
parent
de0d69a20e
commit
0eafee2a95
|
@ -82,7 +82,8 @@ ReducerRegistry.register('features/base/conference', (state = {}, action) => {
|
|||
* reduction of the specified action.
|
||||
*/
|
||||
function _conferenceFailed(state, { conference, error }) {
|
||||
// The active conference or the one we are joining.
|
||||
// The current (similar to getCurrentConference in
|
||||
// base/conference/functions.js) conference which is joining or joined:
|
||||
const conference_ = state.conference || state.joining;
|
||||
|
||||
if (conference_ && conference_ !== conference) {
|
||||
|
|
|
@ -97,8 +97,10 @@ function _connectionFailed(
|
|||
error: Object | string
|
||||
}) {
|
||||
|
||||
// The active or in-progress connection.
|
||||
const connection_ = state.connecting || state.connection;
|
||||
// The current (similar to getCurrentConference in
|
||||
// base/conference/functions.js) connection which is connecting or
|
||||
// connected:
|
||||
const connection_ = state.connection || state.connecting;
|
||||
|
||||
if (connection_ && connection_ !== connection) {
|
||||
return state;
|
||||
|
|
Loading…
Reference in New Issue