SecurityVC: Add warning if we do not have the MSK

This commit is contained in:
manuroe 2020-06-24 10:07:58 +02:00 committed by Manu
parent 3266076065
commit 82acfd106c

View file

@ -478,6 +478,13 @@ SecretsRecoveryCoordinatorBridgePresenterDelegate>
break;
case MXCrossSigningStateCanCrossSign:
crossSigningInformation = [NSBundle mxk_localizedStringForKey:@"security_settings_crosssigning_info_ok"];
#ifdef NEW_CROSS_SIGNING_FLOW
if (![self.mainSession.crypto.recoveryService hasSecretLocally:MXSecretId.crossSigningMaster])
{
crossSigningInformation = [crossSigningInformation stringByAppendingString:@"\n\n⚠ The MSK is missing. Verify this device again or use the Secure Backup below to synchronise your keys accross your devices"];
}
#endif
break;
}
@ -762,7 +769,7 @@ SecretsRecoveryCoordinatorBridgePresenterDelegate>
}
else
{
information = [NSString stringWithFormat:@"\n ✅ %@. ⚠️ This key is not stored locally. Tap Synchronise", secretName];
information = [NSString stringWithFormat:@"\n ⚠️ %@ is in the backup but not locally. Tap Synchronise", secretName];
*hasWarning |= YES;
}
}