From 67da272ccd2e1115729472ab9f8123b9e9087f0c Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 1 Jul 2025 14:52:46 -0400 Subject: [PATCH] Add feature flag for the new calls feature This will be experimental for some time, so we need a way to turn it on/off for future stable builds. --- src/app/neochatconfig.kcfg | 4 ++++ src/devtools/FeatureFlagPage.qml | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/src/app/neochatconfig.kcfg b/src/app/neochatconfig.kcfg index fbe76d769..d338982b8 100644 --- a/src/app/neochatconfig.kcfg +++ b/src/app/neochatconfig.kcfg @@ -205,6 +205,10 @@ false + + + false + diff --git a/src/devtools/FeatureFlagPage.qml b/src/devtools/FeatureFlagPage.qml index 47c4d994e..fe9c18966 100644 --- a/src/devtools/FeatureFlagPage.qml +++ b/src/devtools/FeatureFlagPage.qml @@ -36,4 +36,13 @@ FormCard.FormCard { NeoChatConfig.save(); } } + FormCard.FormCheckDelegate { + text: i18nc("@option:check Enable the matrix feature for audio and video calling", "Calls") + checked: NeoChatConfig.calls + + onToggled: { + NeoChatConfig.calls = checked; + NeoChatConfig.save(); + } + } }