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
fix(notifications) Add timeout for video/audio lost notifs
hmuresan8b23265a5021
diff --git a/react/features/base/devices/middleware.js b/react/features/base/devices/middleware.jsindex b11f6251a2..7e9bba81f2 100644--- a/react/features/base/devices/middleware.js+++ b/react/features/base/devices/middleware.js@@ -50,6 +50,7 @@ const JITSI_TRACK_ERROR_TO_MESSAGE_KEY_MAP = {}};+const WARNING_DISPLAY_TIMER = 4000;/*** A listener for device permissions changed reported from lib-jitsi-meet.@@ -133,7 +134,7 @@ MiddlewareRegistry.register(store => next => action => {description: additionalCameraErrorMsg,descriptionKey: cameraErrorMsg,titleKey- }));+ }, WARNING_DISPLAY_TIMER));if (isPrejoinPageVisible(store.getState())) {store.dispatch(setDeviceStatusWarning(titleKey));@@ -162,7 +163,7 @@ MiddlewareRegistry.register(store => next => action => {description: additionalMicErrorMsg,descriptionKey: micErrorMsg,titleKey- }));+ }, WARNING_DISPLAY_TIMER));if (isPrejoinPageVisible(store.getState())) {store.dispatch(setDeviceStatusWarning(titleKey));diff --git a/react/features/notifications/actions.js b/react/features/notifications/actions.jsindex d020d78041..f9c100e3aa 100644--- a/react/features/notifications/actions.js+++ b/react/features/notifications/actions.js@@ -105,13 +105,15 @@ export function showNotification(props: Object = {}, timeout: ?number) {* Queues a warning notification for display.** @param {Object} props - The props needed to show the notification component.+ * @param {number} timeout - How long the notification should display before+ * automatically being hidden.* @returns {Object}*/-export function showWarningNotification(props: Object) {+export function showWarningNotification(props: Object, timeout: ?number) {return showNotification({...props,appearance: NOTIFICATION_TYPE.WARNING- });+ }, timeout);}/**