RecentsDataSource: Do not display secure backup banner when keys upload is in process.

This commit is contained in:
SBiOSoftWhare
2021-05-17 15:44:29 +02:00
parent 028119ec4f
commit e25adbd8fd
@@ -190,10 +190,13 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
SecureBackupBannerPreferences *secureBackupBannersPreferences = SecureBackupBannerPreferences.shared;
// Display the banner if only we can set up 4S and if there are messages keys to backup
// and if there is no plan to upload keys yet
if (!secureBackupBannersPreferences.hideSetupBanner
&& [self.mxSession vc_canSetupSecureBackup]
&& self.mxSession.crypto.backup.hasKeysToBackup)
&& self.mxSession.crypto.backup.hasKeysToBackup
&& !self.mxSession.crypto.backup.enabled)
{
NSLog(@"[RecentsDataSource] updateSecureBackupBanner: Secure backup should be shown (crypto.backup.state = %lu)", (unsigned long)self.mxSession.crypto.backup.state);
secureBackupBanner = SecureBackupBannerDisplaySetup;
}
}