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
notifications: hdie all (visual) notifications for SIP gateways
Saúl Ibarra Corretgécdbc5976a0da
diff --git a/react/features/notifications/components/web/NotificationsContainer.js b/react/features/notifications/components/web/NotificationsContainer.jsindex 822cca3dd3..9649f9856c 100644--- a/react/features/notifications/components/web/NotificationsContainer.js+++ b/react/features/notifications/components/web/NotificationsContainer.js@@ -6,12 +6,20 @@ import React from 'react';import { connect } from '../../../base/redux';import AbstractNotificationsContainer, {- _abstractMapStateToProps as _mapStateToProps,- type Props+ _abstractMapStateToProps,+ type Props as AbstractProps} from '../AbstractNotificationsContainer';import Notification from './Notification';+type Props = AbstractProps & {++ /**+ * Whther we are a SIP gateway or not.+ */+ _iAmSipGateway: boolean+};+/*** Implements a React {@link Component} which displays notifications and handles* automatic dismissmal after a notification is shown for a defined timeout@@ -28,6 +36,10 @@ class NotificationsContainer extends AbstractNotificationsContainer<Props> {* @returns {ReactElement}*/render() {+ if (this.props._iAmSipGateway) {+ return null;+ }+return (<FlagGroup onDismissed = { this._onDismissed }>{ this._renderFlags() }@@ -65,4 +77,21 @@ class NotificationsContainer extends AbstractNotificationsContainer<Props> {}}+/**+ * Maps (parts of) the Redux state to the associated props for this component.+ *+ * @param {Object} state - The Redux state.+ * @private+ * @returns {Props}+ */+function _mapStateToProps(state) {+ const { iAmSipGateway } = state['features/base/config'];++ return {+ ..._abstractMapStateToProps(state),+ _iAmSipGateway: Boolean(iAmSipGateway)+ };+}++export default connect(_mapStateToProps)(NotificationsContainer);