Feature/4889 deactivate rust for prod

This commit is contained in:
JanNiklas Grabowski
2023-06-28 05:59:03 +00:00
committed by Frank Rotermund
parent fe6f9c5fb7
commit a22c234e82
27 changed files with 889 additions and 36 deletions
@@ -273,12 +273,22 @@
- (IBAction)onDone:(id)sender
{
// Acknowledge the existence of all devices before leaving this screen
[self dismissViewControllerAnimated:YES completion:nil];
if (self->onCompleteBlock)
[self startActivityIndicator];
if (![self.mainSession.crypto isKindOfClass:[MXLegacyCrypto class]])
{
self->onCompleteBlock(YES);
MXLogFailure(@"[UsersDevicesViewController] onDone: Only legacy crypto supports manual setting of known devices");
return;
}
[(MXLegacyCrypto *)mxSession.crypto setDevicesKnown:usersDevices complete:^{
[self stopActivityIndicator];
[self dismissViewControllerAnimated:YES completion:nil];
if (self->onCompleteBlock)
{
self->onCompleteBlock(YES);
}
}];
}
- (IBAction)onCancel:(id)sender