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
@@ -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