revert '813f9ad6302d421864736a6be596093c23cf35d7' 4889_deactivate_rust_for_prod

This commit is contained in:
JanNiklas Grabowski
2023-07-17 08:54:43 +00:00
parent 77ded301ac
commit 6dcf4ea8b6
26 changed files with 36 additions and 888 deletions
@@ -953,15 +953,7 @@ static NSArray<NSNumber*> *initialSyncSilentErrorsHTTPStatusCodes;
[MXKRoomDataSourceManager removeSharedManagerForMatrixSession:mxSession];
if (clearStore)
{
// Force a reload of device keys at the next session start, unless we are just about to migrate
// all data and device keys into CryptoSDK.
// This will fix potential UISIs other peoples receive for our messages.
if ([mxSession.crypto isKindOfClass:[MXLegacyCrypto class]] && !MXSDKOptions.sharedInstance.enableCryptoSDK)
{
[(MXLegacyCrypto *)mxSession.crypto resetDeviceKeys];
}
{
// Clean other stores
[mxSession.scanManager deleteAllAntivirusScans];
[mxSession.aggregations resetData];