Backup settings: Update wording and rendering to match riot-web

Verify button has been removed and replaced by "Use key backup", which makes a restore, because we trust on decrypt now.
This commit is contained in:
manuroe
2019-02-14 17:47:59 +01:00
parent 178b82aa34
commit 51f2312ccd
7 changed files with 66 additions and 108 deletions
@@ -4293,12 +4293,6 @@ KeyBackupRecoverCoordinatorBridgePresenterDelegate>
[self showKeyBackupSetup];
}
- (void)settingsKeyBackup:(SettingsKeyBackupTableViewSection *)settingsKeyBackupTableViewSection showVerifyDevice:(NSString *)deviceId
{
MXDeviceInfo *deviceInfo = [self.mainSession.crypto.deviceList storedDevice:self.mainSession.myUser.userId deviceId:deviceId];
[self showDeviceInfo:deviceInfo];
}
- (void)settingsKeyBackup:(SettingsKeyBackupTableViewSection *)settingsKeyBackupTableViewSection showKeyBackupRecover:(MXKeyBackupVersion *)keyBackupVersion
{
[self showKeyBackupRecover:keyBackupVersion];
@@ -4321,7 +4315,7 @@ KeyBackupRecoverCoordinatorBridgePresenterDelegate>
self->currentAlert = nil;
}]];
[currentAlert addAction:[UIAlertAction actionWithTitle:NSLocalizedStringFromTable(@"remove", @"Vector", nil)
[currentAlert addAction:[UIAlertAction actionWithTitle:NSLocalizedStringFromTable(@"settings_key_backup_button_delete", @"Vector", nil)
style:UIAlertActionStyleDefault
handler:^(UIAlertAction * action) {
MXStrongifyAndReturnIfNil(self);