Reset Crypto SDK on logout

This commit is contained in:
Andy Uhnak
2023-01-31 13:07:16 +00:00
parent 559644cfe6
commit 5613054eef
6 changed files with 65 additions and 8 deletions
@@ -3400,8 +3400,7 @@ ChangePasswordCoordinatorBridgePresenterDelegate>
[confirmationAlert addAction:[UIAlertAction actionWithTitle:[VectorL10n continue] style:UIAlertActionStyleDefault handler:^(UIAlertAction * action) {
MXStrongifyAndReturnIfNil(self);
RiotSettings.shared.enableCryptoSDK = isEnabled;
MXSDKOptions.sharedInstance.enableCryptoSDK = isEnabled;
[CryptoSDKConfiguration.shared enable];
[[AppDelegate theDelegate] reloadMatrixSessions:YES];
}]];