diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 77767c1d09..d394b93b5e 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1426,6 +1426,7 @@ "element_call_video_rooms": "Element Call video rooms", "experimental_description": "Feeling experimental? Try out our latest ideas in development. These features are not finalised; they may be unstable, may change, or may be dropped altogether. Learn more.", "experimental_section": "Early previews", + "extended_profiles_msc_support": "Requires your server to support MSC4133", "feature_disable_call_per_sender_encryption": "Disable per-sender encryption for Element Call", "feature_wysiwyg_composer_description": "Use rich text instead of Markdown in the message composer.", "group_calls": "New group call experience", diff --git a/src/settings/Settings.tsx b/src/settings/Settings.tsx index 34ce940525..876b88f743 100644 --- a/src/settings/Settings.tsx +++ b/src/settings/Settings.tsx @@ -43,6 +43,7 @@ import ServerSupportUnstableFeatureController from "./controllers/ServerSupportU import { WatchManager } from "./WatchManager"; import { CustomTheme } from "../theme"; import AnalyticsController from "./controllers/AnalyticsController"; +import { UNSTABLE_MSC4133_EXTENDED_PROFILES } from "matrix-js-sdk/src/client" export const defaultWatchManager = new WatchManager(); @@ -654,11 +655,17 @@ export const SETTINGS: { [setting: string]: ISetting } = { displayName: _td("settings|preferences|user_timezone"), default: "", }, - // TODO: How to make this visible based on server feature levels? "userTimezonePublish": { supportedLevels: LEVELS_ACCOUNT_SETTINGS, displayName: _td("settings|preferences|publish_timezone"), default: false, + controller: new ServerSupportUnstableFeatureController( + "userTimezonePublish", + defaultWatchManager, + [[UNSTABLE_MSC4133_EXTENDED_PROFILES]], + undefined, + _td("labs|extended_profiles_msc_support"), + ), }, "autoplayGifs": { supportedLevels: LEVELS_ACCOUNT_SETTINGS,