Deprecate MXLegacyCrypto

This commit is contained in:
Andy Uhnak
2023-04-18 11:06:25 +01:00
parent a6aab87891
commit 4e626f48f1
27 changed files with 39 additions and 897 deletions
+8 -20
View File
@@ -370,28 +370,16 @@ CallAudioRouteMenuViewDelegate>
{
typeof(self) self = weakSelf;
self->currentAlert = nil;
// Acknowledge the existence of all devices
[self startActivityIndicator];
if (![self.mainSession.crypto isKindOfClass:[MXLegacyCrypto class]])
// Retry the call
if (call.isIncoming)
{
MXLogFailure(@"[CallViewController] call: Only legacy crypto supports manual setting of known devices");
return;
[call answer];
}
else
{
[call callWithVideo:call.isVideoCall];
}
[(MXLegacyCrypto *)self.mainSession.crypto setDevicesKnown:unknownDevices complete:^{
[self stopActivityIndicator];
// Retry the call
if (call.isIncoming)
{
[call answer];
}
else
{
[call callWithVideo:call.isVideoCall];
}
}];
}
}]];