mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 15:22:39 +00:00
Security settings: Do not ask to complete security if there is no cross-signing
Fix #3147
This commit is contained in:
parent
2d5197c9e7
commit
a7b61baab0
2 changed files with 9 additions and 1 deletions
|
@ -9,6 +9,7 @@ Improvements:
|
|||
|
||||
Bug fix:
|
||||
* Settings: Security, present complete security when my device is not trusted (#3127).
|
||||
* Settings: Security: Do not ask to complete security if there is no cross-signing (#3147).
|
||||
|
||||
Changes in 0.11.0 (2020-04-17)
|
||||
===============================================
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue