Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

notifications,presence-status: check if interfaceConfig is declared

Saúl Ibarra Corretgébd5901d59cba
diff --git a/react/features/notifications/functions.js b/react/features/notifications/functions.js
index f2664d7ccf..1cbad693a3 100644
--- a/react/features/notifications/functions.js
+++ b/react/features/notifications/functions.js
@@ -24,5 +24,5 @@ export function areThereNotifications(stateful: Object | Function) {
* @returns {boolean}
*/
export function joinLeaveNotificationsDisabled() {
- return Boolean(interfaceConfig?.DISABLE_JOIN_LEAVE_NOTIFICATIONS);
+ return Boolean(typeof interfaceConfig !== 'undefined' && interfaceConfig?.DISABLE_JOIN_LEAVE_NOTIFICATIONS);
}
diff --git a/react/features/presence-status/functions.js b/react/features/presence-status/functions.js
index c22e4cc626..442c445248 100644
--- a/react/features/presence-status/functions.js
+++ b/react/features/presence-status/functions.js
@@ -8,5 +8,5 @@ declare var interfaceConfig: Object;
* @returns {boolean}
*/
export function presenceStatusDisabled() {
- return Boolean(interfaceConfig?.DISABLE_PRESENCE_STATUS);
+ return Boolean(typeof interfaceConfig !== 'undefined' && interfaceConfig?.DISABLE_PRESENCE_STATUS);
}