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
ref(mobile): display only the topmost notification
paweldomas0175690a2b04
diff --git a/react/features/notifications/components/NotificationsContainer.native.js b/react/features/notifications/components/NotificationsContainer.native.jsindex a8326d11ec..702cd2486e 100644--- a/react/features/notifications/components/NotificationsContainer.native.js+++ b/react/features/notifications/components/NotificationsContainer.native.js@@ -37,7 +37,11 @@ class NotificationsContainerrender() {const { _notifications } = this.props;- if (!_notifications || !_notifications.length) {+ // Currently the native container displays only the topmost notification+ const theNotification+ = _notifications && _notifications.length && _notifications[0];++ if (!theNotification) {return null;}@@ -48,15 +52,10 @@ class NotificationsContainerstyles.notificationContainer,this.props.style] } >- {- _notifications.map(- ({ props, uid }) => (- <Notification- { ...props }- key = { uid }- onDismissed = { this._onDismissed }- uid = { uid } />))- }+ <Notification+ { ...theNotification.props }+ onDismissed = { this._onDismissed }+ uid = { theNotification.uid } /></View>);}