Complete MXCryptoV2 implementation

This commit is contained in:
Andy Uhnak
2022-10-26 09:55:47 +01:00
parent 8334fa1e69
commit 2acf773404
25 changed files with 113 additions and 69 deletions
@@ -274,7 +274,12 @@
{
// Acknowledge the existence of all devices before leaving this screen
[self startActivityIndicator];
[mxSession.crypto setDevicesKnown:usersDevices complete:^{
if (![self.mainSession.crypto isKindOfClass:[MXLegacyCrypto class]])
{
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];