Skip to content

Commit

Permalink
Propose to activate Secure backup once a week
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Buquet committed Nov 20, 2023
1 parent 8e022db commit b73ad79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Riot/Modules/Application/LegacyAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];

}]];

Expand Down

0 comments on commit b73ad79

Please sign in to comment.