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
+7 -1
View File
@@ -6255,7 +6255,13 @@ static CGSize kThreadListBarButtonItemImageSize;
// Acknowledge the existence of all devices
[self startActivityIndicator];
[self.mainSession.crypto setDevicesKnown:self->unknownDevices complete:^{
if (![self.mainSession.crypto isKindOfClass:[MXLegacyCrypto class]])
{
MXLogFailure(@"[RoomVC] eventDidChangeSentState: Only legacy crypto supports manual setting of known devices");
return;
}
[(MXLegacyCrypto *)self.mainSession.crypto setDevicesKnown:self->unknownDevices complete:^{
self->unknownDevices = nil;
[self stopActivityIndicator];