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.
This commit is contained in:
Joshua Goins
2025-07-01 14:52:46 -04:00
parent 171930fb1d
commit 67da272ccd
2 changed files with 13 additions and 0 deletions

View File

@@ -205,6 +205,10 @@
<label>Enable add phone numbers as 3PIDs</label>
<default>false</default>
</entry>
<entry name="Calls" type="bool">
<label>Enable audio and video calling</label>
<default>false</default>
</entry>
</group>
<group name="Security">
<entry name="RejectUnknownInvites" type="bool">

View File

@@ -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();
}
}
}