End-to-end encryption UI/UX

#723

- fix Manu's comments
This commit is contained in:
giomfo
2016-11-15 09:46:47 +01:00
parent baa3a946d1
commit 36c631c62f
11 changed files with 13 additions and 10 deletions
@@ -1404,6 +1404,9 @@ typedef void (^blockSettingsViewController_onReadyToDestroy)();
UISwitch *switchButton = (UISwitch*)sender;
MXKAccount* account = [MXKAccountManager sharedManager].activeAccounts.firstObject;
// Turn off by default the flag which is used to enable automatically the encryption on new sessions.
[MXSDKOptions sharedInstance].enableCryptoWhenStartingMXSession = NO;
if (switchButton.isOn && !account.mxCredentials.deviceId.length)
{
// Prompt the user to log in again when no device id is available.