Security settings: Do not ask to complete security if there is no cross-signing

Fix #3147
This commit is contained in:
manuroe
2020-04-24 18:47:57 +02:00
parent 79284d1094
commit e49bceb7df
2 changed files with 9 additions and 1 deletions

View File

@@ -934,7 +934,14 @@ UIDocumentInteractionControllerDelegate>
{
MXDevice *device = devicesArray[deviceIndex];
if (self.mainSession.crypto.crossSigning.canCrossSign)
if (self.mainSession.crypto.crossSigning.state == MXCrossSigningStateNotBootstrapped)
{
// Display the device details. The verification will fail there.
ManageSessionViewController *viewController = [ManageSessionViewController instantiateWithMatrixSession:self.mainSession andDevice:device];
[self pushViewController:viewController];
}
else if (self.mainSession.crypto.crossSigning.canCrossSign)
{
ManageSessionViewController *viewController = [ManageSessionViewController instantiateWithMatrixSession:self.mainSession andDevice:device];