summary refs log tree commit diff
path: root/src/UserSettingsPage.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-06-18 20:16:52 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-06-19 16:37:00 +0200
commitead10cd0fdd3437004f87afde51c290fc2c025ca (patch)
tree319b23168d215183a6cb90c9d4a8c11e5d956e4f /src/UserSettingsPage.cpp
parentTranslated using Weblate (English) (diff)
downloadnheko-ead10cd0fdd3437004f87afde51c290fc2c025ca.tar.xz
Request full online keybackup when turning it on
Diffstat (limited to 'src/UserSettingsPage.cpp')
-rw-r--r--src/UserSettingsPage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp
index dc8e87fc..666a03b4 100644
--- a/src/UserSettingsPage.cpp
+++ b/src/UserSettingsPage.cpp
@@ -548,6 +548,9 @@ UserSettings::setUseOnlineKeyBackup(bool useBackup)
     useOnlineKeyBackup_ = useBackup;
     emit useOnlineKeyBackupChanged(useBackup);
     save();
+
+    if (useBackup)
+        olm::download_full_keybackup();
 }
 
 void