CryptoV2 changes

This commit is contained in:
Andy Uhnak
2022-10-27 12:33:33 +01:00
parent 2acf773404
commit 618fb88424
6 changed files with 41 additions and 24 deletions
@@ -952,7 +952,10 @@ static NSArray<NSNumber*> *initialSyncSilentErrorsHTTPStatusCodes;
{
// Force a reload of device keys at the next session start.
// This will fix potential UISIs other peoples receive for our messages.
[(MXLegacyCrypto *)mxSession.crypto resetDeviceKeys];
if ([mxSession.crypto isKindOfClass:[MXLegacyCrypto class]])
{
[(MXLegacyCrypto *)mxSession.crypto resetDeviceKeys];
}
// Clean other stores
[mxSession.scanManager deleteAllAntivirusScans];