Crypto: Once crypto is enabled, it is enabled until the user logs out

This commit is contained in:
manuroe
2016-11-07 18:02:19 +01:00
parent a46ea05b6e
commit 39cd77ee56
@@ -1063,6 +1063,12 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
[labelAndSwitchCell.mxkSwitch removeTarget:self action:nil forControlEvents:UIControlEventTouchUpInside];
[labelAndSwitchCell.mxkSwitch addTarget:self action:@selector(toggleLabsEndToEndEncryption:) forControlEvents:UIControlEventTouchUpInside];
if (session.crypto)
{
// Once crypto is enabled, it is enabled
labelAndSwitchCell.mxkSwitch.enabled = NO;
}
cell = labelAndSwitchCell;
}
}