feat(end-meet-for-all) Trigger notifyReadyToClose event on end meetin… (#10549)
This commit is contained in:
parent
0188086dde
commit
9b3f254c6b
|
@ -27,3 +27,7 @@ export const EMAIL_COMMAND = 'email';
|
||||||
* from the outside is not cool but it should suffice for now.
|
* from the outside is not cool but it should suffice for now.
|
||||||
*/
|
*/
|
||||||
export const JITSI_CONFERENCE_URL_KEY = Symbol('url');
|
export const JITSI_CONFERENCE_URL_KEY = Symbol('url');
|
||||||
|
|
||||||
|
export const TRIGGER_READY_TO_CLOSE_REASONS = [
|
||||||
|
'The meeting has been terminated'
|
||||||
|
];
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
|
import { readyToClose } from '../../../features/mobile/external-api/actions';
|
||||||
import {
|
import {
|
||||||
ACTION_PINNED,
|
ACTION_PINNED,
|
||||||
ACTION_UNPINNED,
|
ACTION_UNPINNED,
|
||||||
|
@ -40,6 +41,7 @@ import {
|
||||||
createConference,
|
createConference,
|
||||||
setSubject
|
setSubject
|
||||||
} from './actions';
|
} from './actions';
|
||||||
|
import { TRIGGER_READY_TO_CLOSE_REASONS } from './constants';
|
||||||
import {
|
import {
|
||||||
_addLocalTracksToConference,
|
_addLocalTracksToConference,
|
||||||
_removeLocalTracksFromConference,
|
_removeLocalTracksFromConference,
|
||||||
|
@ -130,6 +132,14 @@ function _conferenceFailed({ dispatch, getState }, next, action) {
|
||||||
titleKey: 'dialog.sessTerminated'
|
titleKey: 'dialog.sessTerminated'
|
||||||
}, NOTIFICATION_TIMEOUT_TYPE.LONG));
|
}, NOTIFICATION_TIMEOUT_TYPE.LONG));
|
||||||
|
|
||||||
|
if (TRIGGER_READY_TO_CLOSE_REASONS.includes(reason)) {
|
||||||
|
if (typeof APP === undefined) {
|
||||||
|
dispatch(readyToClose());
|
||||||
|
} else {
|
||||||
|
APP.API.notifyReadyToClose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case JitsiConferenceErrors.CONFERENCE_RESTARTED: {
|
case JitsiConferenceErrors.CONFERENCE_RESTARTED: {
|
||||||
|
|
Loading…
Reference in New Issue