You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-09-04 18:02:20 +03:00
Check for feature support for extended profiles.
This commit is contained in:
@@ -1426,6 +1426,7 @@
|
|||||||
"element_call_video_rooms": "Element Call video rooms",
|
"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. <a>Learn more</a>.",
|
"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. <a>Learn more</a>.",
|
||||||
"experimental_section": "Early previews",
|
"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_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.",
|
"feature_wysiwyg_composer_description": "Use rich text instead of Markdown in the message composer.",
|
||||||
"group_calls": "New group call experience",
|
"group_calls": "New group call experience",
|
||||||
|
@@ -43,6 +43,7 @@ import ServerSupportUnstableFeatureController from "./controllers/ServerSupportU
|
|||||||
import { WatchManager } from "./WatchManager";
|
import { WatchManager } from "./WatchManager";
|
||||||
import { CustomTheme } from "../theme";
|
import { CustomTheme } from "../theme";
|
||||||
import AnalyticsController from "./controllers/AnalyticsController";
|
import AnalyticsController from "./controllers/AnalyticsController";
|
||||||
|
import { UNSTABLE_MSC4133_EXTENDED_PROFILES } from "matrix-js-sdk/src/client"
|
||||||
|
|
||||||
export const defaultWatchManager = new WatchManager();
|
export const defaultWatchManager = new WatchManager();
|
||||||
|
|
||||||
@@ -654,11 +655,17 @@ export const SETTINGS: { [setting: string]: ISetting } = {
|
|||||||
displayName: _td("settings|preferences|user_timezone"),
|
displayName: _td("settings|preferences|user_timezone"),
|
||||||
default: "",
|
default: "",
|
||||||
},
|
},
|
||||||
// TODO: How to make this visible based on server feature levels?
|
|
||||||
"userTimezonePublish": {
|
"userTimezonePublish": {
|
||||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||||
displayName: _td("settings|preferences|publish_timezone"),
|
displayName: _td("settings|preferences|publish_timezone"),
|
||||||
default: false,
|
default: false,
|
||||||
|
controller: new ServerSupportUnstableFeatureController(
|
||||||
|
"userTimezonePublish",
|
||||||
|
defaultWatchManager,
|
||||||
|
[[UNSTABLE_MSC4133_EXTENDED_PROFILES]],
|
||||||
|
undefined,
|
||||||
|
_td("labs|extended_profiles_msc_support"),
|
||||||
|
),
|
||||||
},
|
},
|
||||||
"autoplayGifs": {
|
"autoplayGifs": {
|
||||||
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
supportedLevels: LEVELS_ACCOUNT_SETTINGS,
|
||||||
|
Reference in New Issue
Block a user