Skip to content
Snippets Groups Projects
Verified Commit 23697e28 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

warn about online keybackup and default to off

parent d97e408c
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ UserSettings::load(std::optional<QString> profile)
.toBool();
onlyShareKeysWithVerifiedUsers_ =
settings.value(prefix + "user/only_share_keys_with_verified_users", false).toBool();
useOnlineKeyBackup_ = settings.value(prefix + "user/online_key_backup", true).toBool();
useOnlineKeyBackup_ = settings.value(prefix + "user/online_key_backup", false).toBool();
disableCertificateValidation_ =
settings.value("disable_certificate_validation", false).toBool();
......@@ -1228,6 +1228,17 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
});
connect(useOnlineKeyBackup_, &Toggle::toggled, this, [this](bool enabled) {
if (enabled) {
if (QMessageBox::question(
this,
tr("Enable online key backup"),
tr("The Nheko authors recommend not enabling online key backup until "
"symmetric online key backup is available. Enable anyway?")) !=
QMessageBox::StandardButton::NoButton) {
useOnlineKeyBackup_->setState(false);
return;
}
}
settings_->setUseOnlineKeyBackup(enabled);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment