mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 22:26:59 +02:00
Crypto threading: Follow changes in the sdk
This commit is contained in:
@@ -346,7 +346,12 @@
|
||||
}
|
||||
|
||||
// Retrieve member's devices
|
||||
devicesArray = [self.mxRoom.mxSession.crypto storedDevicesForUser:self.mxRoomMember.userId];
|
||||
[self.mxRoom.mxSession.crypto devicesForUser:self.mxRoomMember.userId complete:^(NSArray<MXDeviceInfo *> *devices) {
|
||||
devicesArray = devices;
|
||||
|
||||
// Reload the full table to take into account a potential change on a device status.
|
||||
[super updateMemberInfo];
|
||||
}];
|
||||
}
|
||||
|
||||
// Complete data update and reload table view
|
||||
@@ -934,7 +939,11 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
[self.mxRoom.mxSession.crypto setDeviceVerification:verificationStatus forDevice:deviceTableViewCell.deviceInfo.deviceId ofUser:self.mxRoomMember.userId];
|
||||
[self.mxRoom.mxSession.crypto setDeviceVerification:verificationStatus
|
||||
forDevice:deviceTableViewCell.deviceInfo.deviceId
|
||||
ofUser:self.mxRoomMember.userId
|
||||
success:nil failure:nil
|
||||
];
|
||||
[self updateMemberInfo];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user