Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(end-meet-for-all) Trigger notifyReadyToClose event on end meetin… (#10549)
Horatiu Muresan9b3f254c6b93
diff --git a/react/features/base/conference/constants.js b/react/features/base/conference/constants.jsindex 7338449816..62f85aa25f 100644--- a/react/features/base/conference/constants.js+++ b/react/features/base/conference/constants.js@@ -27,3 +27,7 @@ export const EMAIL_COMMAND = 'email';* from the outside is not cool but it should suffice for now.*/export const JITSI_CONFERENCE_URL_KEY = Symbol('url');++export const TRIGGER_READY_TO_CLOSE_REASONS = [+ 'The meeting has been terminated'+];diff --git a/react/features/base/conference/middleware.any.js b/react/features/base/conference/middleware.any.jsindex 0ddc729e5c..8429fb8232 100644--- a/react/features/base/conference/middleware.any.js+++ b/react/features/base/conference/middleware.any.js@@ -1,5 +1,6 @@// @flow+import { readyToClose } from '../../../features/mobile/external-api/actions';import {ACTION_PINNED,ACTION_UNPINNED,@@ -40,6 +41,7 @@ import {createConference,setSubject} from './actions';+import { TRIGGER_READY_TO_CLOSE_REASONS } from './constants';import {_addLocalTracksToConference,_removeLocalTracksFromConference,@@ -130,6 +132,14 @@ function _conferenceFailed({ dispatch, getState }, next, action) {titleKey: 'dialog.sessTerminated'}, NOTIFICATION_TIMEOUT_TYPE.LONG));+ if (TRIGGER_READY_TO_CLOSE_REASONS.includes(reason)) {+ if (typeof APP === undefined) {+ dispatch(readyToClose());+ } else {+ APP.API.notifyReadyToClose();+ }+ }+break;}case JitsiConferenceErrors.CONFERENCE_RESTARTED: {