From b73ad79fee4c985b24de4b0c9678e9e5a140b687 Mon Sep 17 00:00:00 2001 From: Nicolas Buquet Date: Mon, 20 Nov 2023 15:41:17 +0100 Subject: [PATCH] Propose to activate Secure backup once a week --- Riot/Modules/Application/LegacyAppDelegate.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Riot/Modules/Application/LegacyAppDelegate.m b/Riot/Modules/Application/LegacyAppDelegate.m index 1b184ee6c..6ba07d331 100644 --- a/Riot/Modules/Application/LegacyAppDelegate.m +++ b/Riot/Modules/Application/LegacyAppDelegate.m @@ -2585,7 +2585,8 @@ - (void)presentSecureBackupSetupInviteIfNeeded handler:^(UIAlertAction * action) { // Set next invite in the future. - RiotSettings.shared.tchapSecureBackupNextDisplayDate = [NSDate.now dateByAddingTimeInterval:60]; + NSTimeInterval timeIntervalBeforeNextPresentation = 7*3600; // Propose to activate Secure Backup no more than once a week. + RiotSettings.shared.tchapSecureBackupNextDisplayDate = [NSDate.now dateByAddingTimeInterval:timeIntervalBeforeNextPresentation]; }]];