Do not mention key backup on sign out when there is no keys to backup

This commit is contained in:
SBiOSoftWhare
2019-03-05 15:53:58 +01:00
parent 1371487821
commit 066e2f5739
2 changed files with 18 additions and 7 deletions
@@ -2711,12 +2711,13 @@ SignOutAlertPresenterDelegate>
{
self.signOutButton = (UIButton*)sender;
MXKeyBackupState backupState = self.mainSession.crypto.backup.state;
[self.signOutAlertPresenter
presentFor:backupState
from:self
sourceView:self.signOutButton
animated:YES];
MXKeyBackup *keyBackup = self.mainSession.crypto.backup;
[self.signOutAlertPresenter presentFor:keyBackup.state
areThereKeysToBackup:keyBackup.hasKeysToBackup
from:self
sourceView:self.signOutButton
animated:YES];
}
- (void)onRemove3PID:(NSIndexPath*)path