Skip to content

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

feat(app-notifications): Remove device notifications in the prejoin screen.

tudordan7a7efbfb0f85b
diff --git a/react/features/base/devices/middleware.js b/react/features/base/devices/middleware.js
index 7e9bba81f2..760dc3e82e 100644
--- a/react/features/base/devices/middleware.js
+++ b/react/features/base/devices/middleware.js
@@ -292,13 +292,14 @@ function _checkAndNotifyForNewDevice(store, newDevices, oldDevices) {
break;
}
}
-
- dispatch(showNotification({
- description,
- titleKey,
- customActionNameKey: 'notify.newDeviceAction',
- customActionHandler: _useDevice.bind(undefined, store, devicesArray)
- }));
+ if (!isPrejoinPageVisible(store.getState())) {
+ dispatch(showNotification({
+ description,
+ titleKey,
+ customActionNameKey: 'notify.newDeviceAction',
+ customActionHandler: _useDevice.bind(undefined, store, devicesArray)
+ }));
+ }
});
}