|
@@ -16,8 +16,9 @@ import { IStore } from '../../app/types';
|
16
|
16
|
import { removeLobbyChatParticipant } from '../../chat/actions.any';
|
17
|
17
|
import { openDisplayNamePrompt } from '../../display-name/actions';
|
18
|
18
|
import { isVpaasMeeting } from '../../jaas/functions';
|
19
|
|
-import { showErrorNotification } from '../../notifications/actions';
|
|
19
|
+import { showErrorNotification, showNotification } from '../../notifications/actions';
|
20
|
20
|
import { NOTIFICATION_TIMEOUT_TYPE } from '../../notifications/constants';
|
|
21
|
+import { INotificationProps } from '../../notifications/types';
|
21
|
22
|
import { hasDisplayName } from '../../prejoin/utils';
|
22
|
23
|
import { stopLocalVideoRecording } from '../../recording/actions.any';
|
23
|
24
|
import LocalRecordingManager from '../../recording/components/Recording/LocalRecordingManager';
|
|
@@ -419,6 +420,16 @@ function _connectionFailed({ dispatch, getState }: IStore, next: Function, actio
|
419
|
420
|
}
|
420
|
421
|
}
|
421
|
422
|
|
|
423
|
+ if (error.name === JitsiConnectionErrors.CONFERENCE_REQUEST_FAILED) {
|
|
424
|
+ const notificationProps = {
|
|
425
|
+ customActionNameKey: [ 'dialog.rejoinNow' ],
|
|
426
|
+ customActionHandler: [ () => dispatch(reloadNow()) ],
|
|
427
|
+ descriptionKey: 'notify.connectionFailed'
|
|
428
|
+ } as INotificationProps;
|
|
429
|
+
|
|
430
|
+ dispatch(showNotification(notificationProps, NOTIFICATION_TIMEOUT_TYPE.STICKY));
|
|
431
|
+ }
|
|
432
|
+
|
422
|
433
|
const result = next(action);
|
423
|
434
|
|
424
|
435
|
_removeUnloadHandler(getState);
|