mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
fix(FeedbackButoon): display for JaaS meetings.
This commit is contained in:
@@ -9,6 +9,7 @@ import { translate } from '../../base/i18n/functions';
|
||||
import { IconFeedback } from '../../base/icons/svg';
|
||||
import AbstractButton, { IProps as AbstractButtonProps } from '../../base/toolbox/components/AbstractButton';
|
||||
import { openFeedbackDialog } from '../actions';
|
||||
import { shouldSendJaaSFeedbackMetadata } from '../functions.web';
|
||||
|
||||
/**
|
||||
* The type of the React {@code Component} props of {@link FeedbackButton}.
|
||||
@@ -45,11 +46,11 @@ class FeedbackButton extends AbstractButton<IProps> {
|
||||
}
|
||||
|
||||
const mapStateToProps = (state: IReduxState) => {
|
||||
const { callStatsID } = state['features/base/config'];
|
||||
const { conference } = state['features/base/conference'];
|
||||
|
||||
return {
|
||||
_conference: state['features/base/conference'].conference,
|
||||
visible: Boolean(callStatsID)
|
||||
_conference: conference,
|
||||
visible: conference?.isCallstatsEnabled() || shouldSendJaaSFeedbackMetadata(state)
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -65,6 +65,6 @@ export async function sendFeedbackToJaaSRequest(url: string | undefined, feedbac
|
||||
export function shouldSendJaaSFeedbackMetadata(state: IReduxState) {
|
||||
const { jaasFeedbackMetadataURL } = state['features/base/config'];
|
||||
|
||||
return isVpaasMeeting(state) && jaasFeedbackMetadataURL;
|
||||
return Boolean(isVpaasMeeting(state) && jaasFeedbackMetadataURL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user