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

Commit 8379f56

Browse files
Use stable prefixes MSC3827 (#9092)
1 parent 0357b4f commit 8379f56

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/components/views/settings/tabs/user/LabsUserSettingsTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default class LabsUserSettingsTab extends React.Component<{}, IState> {
6666
this.setState({ showJumpToDate });
6767
});
6868

69-
cli.doesServerSupportUnstableFeature("org.matrix.msc3827").then((showExploringPublicSpaces) => {
69+
cli.doesServerSupportUnstableFeature("org.matrix.msc3827.stable").then((showExploringPublicSpaces) => {
7070
this.setState({ showExploringPublicSpaces });
7171
});
7272

src/components/views/spaces/SpaceCreateMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ export const createSpace = async (
5252
createOpts: {
5353
name,
5454
preset: isPublic ? Preset.PublicChat : Preset.PrivateChat,
55-
visibility: (isPublic && await MatrixClientPeg.get().doesServerSupportUnstableFeature("org.matrix.msc3827"))
56-
? Visibility.Public
57-
: Visibility.Private,
55+
visibility: (
56+
isPublic && await MatrixClientPeg.get().doesServerSupportUnstableFeature("org.matrix.msc3827.stable")
57+
) ? Visibility.Public : Visibility.Private,
5858
power_level_content_override: {
5959
// Only allow Admins to write to the timeline to prevent hidden sync spam
6060
events_default: 100,

src/components/views/spaces/SpaceSettingsVisibilityTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ interface IProps {
4040
const SpaceSettingsVisibilityTab = ({ matrixClient: cli, space, closeSettingsFn }: IProps) => {
4141
const [error, setError] = useState("");
4242
const serverSupportsExploringSpaces = useAsyncMemo<boolean>(async () => {
43-
return cli.doesServerSupportUnstableFeature("org.matrix.msc3827");
43+
return cli.doesServerSupportUnstableFeature("org.matrix.msc3827.stable");
4444
}, [cli], false);
4545

4646
const userId = cli.getUserId();

src/hooks/usePublicRoomDirectory.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ export const usePublicRoomDirectory = () => {
9090

9191
if (query || roomTypes) {
9292
opts.filter = {
93-
"generic_search_term": query,
94-
"org.matrix.msc3827.room_types": await MatrixClientPeg.get().doesServerSupportUnstableFeature(
95-
"org.matrix.msc3827",
93+
generic_search_term: query,
94+
room_types: await MatrixClientPeg.get().doesServerSupportUnstableFeature(
95+
"org.matrix.msc3827.stable",
9696
) ? Array.from<RoomType | null>(roomTypes) : null,
9797
};
9898
}

0 commit comments

Comments
 (0)