Deprecate MXLegacyCrypto

This commit is contained in:
Andy Uhnak
2023-04-18 11:06:25 +01:00
parent 2276b6a11f
commit 7b728c14f8
27 changed files with 39 additions and 897 deletions
@@ -273,22 +273,12 @@
- (IBAction)onDone:(id)sender
{
// Acknowledge the existence of all devices before leaving this screen
[self startActivityIndicator];
if (![self.mainSession.crypto isKindOfClass:[MXLegacyCrypto class]])
[self dismissViewControllerAnimated:YES completion:nil];
if (self->onCompleteBlock)
{
MXLogFailure(@"[UsersDevicesViewController] onDone: Only legacy crypto supports manual setting of known devices");
return;
self->onCompleteBlock(YES);
}
[(MXLegacyCrypto *)mxSession.crypto setDevicesKnown:usersDevices complete:^{
[self stopActivityIndicator];
[self dismissViewControllerAnimated:YES completion:nil];
if (self->onCompleteBlock)
{
self->onCompleteBlock(YES);
}
}];
}
- (IBAction)onCancel:(id)sender