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(highlight) fix notifications not disappearing (#11183)
Avram Tudor6b0b575bd4ce
diff --git a/react/features/recording/actions.any.js b/react/features/recording/actions.any.jsindex 909d3d23d1..cdced9c483 100644--- a/react/features/recording/actions.any.js+++ b/react/features/recording/actions.any.js@@ -138,7 +138,7 @@ export function highlightMeetingMoment() {dispatch(showNotification({descriptionKey: 'recording.highlightMomentSucessDescription',titleKey: 'recording.highlightMomentSuccess'- }));+ }, NOTIFICATION_TIMEOUT_TYPE.SHORT));}dispatch(setHighlightMomentButtonState(false));diff --git a/react/features/recording/components/Recording/AbstractHighlightButton.js b/react/features/recording/components/Recording/AbstractHighlightButton.jsindex f603f71cfe..378c6c1433 100644--- a/react/features/recording/components/Recording/AbstractHighlightButton.js+++ b/react/features/recording/components/Recording/AbstractHighlightButton.js@@ -19,9 +19,19 @@ import { PROMPT_RECORDING_NOTIFICATION_ID } from '../../constants';export type Props = {/**- * Whether or not the conference is in audio only mode.+ * Indicates whether or not the button is disabled.*/- _audioOnly: boolean,+ _disabled: boolean,++ /**+ * Indicates whether or not a highlight request is in progress.+ */+ _isHighlightInProgress: boolean,++ /**+ * Indicates whether or not the button should be visible.+ */+ _visible: boolean,/*** Invoked to obtain translated strings.@@ -53,7 +63,11 @@ export default class AbstractHighlightButton<P: Props> extends Component<P> {* @returns {void}*/_onClick() {- const { _disabled, dispatch } = this.props;+ const { _disabled, _isHighlightInProgress, dispatch } = this.props;++ if (_isHighlightInProgress) {+ return;+ }if (_disabled) {dispatch(showNotification({@@ -77,12 +91,14 @@ export default class AbstractHighlightButton<P: Props> extends Component<P> {/*** Maps (parts of) the Redux state to the associated- * {@code AbstractVideoQualityLabel}'s props.+ * {@code AbstractHighlightButton}'s props.** @param {Object} state - The Redux state.* @private* @returns {{- * _audioOnly: boolean+ * _disabled: boolean,+ * _isHighlightInProgress: boolean,+ * _visible: boolean* }}*/export function _abstractMapStateToProps(state: Object) {@@ -91,7 +107,8 @@ export function _abstractMapStateToProps(state: Object) {const { webhookProxyUrl } = state['features/base/config'];return {- _disabled: !isRecordingRunning || isButtonDisabled,+ _disabled: !isRecordingRunning,+ _isHighlightInProgress: isButtonDisabled,_visible: Boolean(webhookProxyUrl)};}