Cross-signing: Follow API change on MXDeviceInfo.trustLevel

This commit is contained in:
manuroe
2020-01-16 09:19:39 +01:00
parent c5e679693c
commit c4bce89834
7 changed files with 18 additions and 14 deletions
@@ -228,7 +228,7 @@
ofUser:deviceTableViewCell.deviceInfo.userId
success:^{
deviceTableViewCell.deviceInfo.verified = verificationStatus;
//deviceTableViewCell.deviceInfo.verified = verificationStatus;
[self.tableView reloadData];
} failure:nil];
@@ -244,13 +244,13 @@
// Update our map
MXWeakify(self);
[mxSession.crypto downloadKeys:@[otherUserId] forceDownload:NO success:^(MXUsersDevicesMap<MXDeviceInfo *> *usersDevicesInfoMap) {
[mxSession.crypto downloadKeys:@[otherUserId] forceDownload:NO success:^(MXUsersDevicesMap<MXDeviceInfo *> *usersDevicesInfoMap, NSDictionary<NSString *,MXCrossSigningInfo *> *crossSigningKeysMap) {
MXStrongifyAndReturnIfNil(self);
MXDeviceInfo *deviceInfo = [usersDevicesInfoMap objectForDevice:otherDeviceId forUser:otherUserId];
MXDeviceInfo *device = [self->usersDevices objectForDevice:otherDeviceId forUser:otherUserId];
device.verified = deviceInfo.verified;
//device.verified = deviceInfo.verified;
[self.tableView reloadData];