|
@@ -56,12 +56,20 @@ ReducerRegistry.register('features/overlay', (state = {}, action) => {
|
56
|
56
|
* @returns {Object} The new state of the feature overlay after the reduction of
|
57
|
57
|
* the specified action.
|
58
|
58
|
*/
|
59
|
|
-function _conferenceFailed(state, { error, message }) {
|
60
|
|
- if (error === JitsiConferenceErrors.FOCUS_LEFT
|
61
|
|
- || error === JitsiConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE) {
|
|
59
|
+function _conferenceFailed(state, { error: { message, name } }) {
|
|
60
|
+ if (name === JitsiConferenceErrors.FOCUS_LEFT
|
|
61
|
+ || name === JitsiConferenceErrors.VIDEOBRIDGE_NOT_AVAILABLE) {
|
62
|
62
|
return assign(state, {
|
63
|
63
|
haveToReload: true,
|
64
|
64
|
isNetworkFailure: false,
|
|
65
|
+
|
|
66
|
+ // FIXME There is no message associated with CONFERENCE_FAILED at
|
|
67
|
+ // the time of this writing. In jitsi-meet the action creator
|
|
68
|
+ // conferenceFailed neither accepts an argument message nor defines
|
|
69
|
+ // a property message on the error. In lib-jitsi-meet
|
|
70
|
+ // CONFERENCE_FAILED emissions mostly do not provide a message with
|
|
71
|
+ // the exception of at least one which provides an Error, not a
|
|
72
|
+ // string.
|
65
|
73
|
reason: message
|
66
|
74
|
});
|
67
|
75
|
}
|