From 0c80db882027708350fb9d47f8d17091781c1a44 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 20 Aug 2020 19:44:59 -0600 Subject: [PATCH] Add feature flag for prototypes --- src/i18n/strings/en_EN.json | 1 + src/settings/Settings.ts | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 4c0557ac70..3ffc11b5b8 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -444,6 +444,7 @@ "%(senderName)s: %(reaction)s": "%(senderName)s: %(reaction)s", "%(senderName)s: %(stickerName)s": "%(senderName)s: %(stickerName)s", "Change notification settings": "Change notification settings", + "Communities v2 prototypes. Requires compatible homeserver. Highly experimental - use with caution.": "Communities v2 prototypes. Requires compatible homeserver. Highly experimental - use with caution.", "New spinner design": "New spinner design", "Message Pinning": "Message Pinning", "Custom user status messages": "Custom user status messages", diff --git a/src/settings/Settings.ts b/src/settings/Settings.ts index 3d18c14e16..838df51ea3 100644 --- a/src/settings/Settings.ts +++ b/src/settings/Settings.ts @@ -109,6 +109,12 @@ export interface ISetting { } export const SETTINGS: {[setting: string]: ISetting} = { + "feature_communities_v2_prototypes": { + isFeature: true, + displayName: _td("Communities v2 prototypes. Requires compatible homeserver. Highly experimental - use with caution."), + supportedLevels: LEVELS_FEATURE, + default: false, + }, "feature_new_spinner": { isFeature: true, displayName: _td("New spinner design"),