Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 7e435ee

Browse files
authored
Fix spaces feedback prompt wrongly showing when feedback is disabled (#9302)
1 parent 9076152 commit 7e435ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/views/spaces/SpaceCreateMenu.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import SettingsStore from "../../../settings/SettingsStore";
3838
import { getKeyBindingsManager } from "../../../KeyBindingsManager";
3939
import { KeyBindingAction } from "../../../accessibility/KeyboardShortcuts";
4040
import { MatrixClientPeg } from "../../../MatrixClientPeg";
41+
import { UIFeature } from "../../../settings/UIFeature";
4142

4243
export const createSpace = async (
4344
name: string,
@@ -100,7 +101,7 @@ const nameToLocalpart = (name: string): string => {
100101

101102
// XXX: Temporary for the Spaces release only
102103
export const SpaceFeedbackPrompt = ({ onClick }: { onClick?: () => void }) => {
103-
if (!SdkConfig.get().bug_report_endpoint_url) return null;
104+
if (!SdkConfig.get().bug_report_endpoint_url || !SettingsStore.getValue(UIFeature.Feedback)) return null;
104105

105106
return <div className="mx_SpaceFeedbackPrompt">
106107
<span className="mx_SpaceFeedbackPrompt_text">{ _t("Spaces are a new feature.") }</span>

0 commit comments

Comments
 (0)