refactor: Migrate more config options to config viewer

Signed-off-by: Krille <c.kussowski@famedly.com>
This commit is contained in:
Krille 2025-03-29 16:04:24 +01:00
commit 5a96438ceb
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
5 changed files with 22 additions and 18 deletions

View file

@ -111,10 +111,10 @@ class SettingsSecurityController extends State<SettingsSecurity> {
void changeShareKeysWith(ShareKeysWith? shareKeysWith) async {
if (shareKeysWith == null) return;
Matrix.of(context).store.setString(
SettingKeys.shareKeysWith,
shareKeysWith.name,
);
AppSettings.shareKeysWith.setItem(
Matrix.of(context).store,
shareKeysWith.name,
);
Matrix.of(context).client.shareKeysWith = shareKeysWith;
setState(() {});
}