Device Verification: Verify screen: bind transaction.confirmSASMatch()

This commit is contained in:
manuroe
2019-04-11 17:59:12 +02:00
parent dc9bcbeb82
commit 8e09880b95
6 changed files with 99 additions and 11 deletions
@@ -61,8 +61,8 @@ final class DeviceVerificationCoordinator: DeviceVerificationCoordinatorType {
/// - transaction: an existing device verification transaction
convenience init(session: MXSession, transaction: MXSASTransaction) {
self.init(session: session,
otherUserId: transaction.otherUser,
otherDeviceId: transaction.otherDevice)
otherUserId: transaction.otherUserId,
otherDeviceId: transaction.otherDeviceId)
self.transaction = transaction
}
@@ -84,7 +84,12 @@ final class DeviceVerificationCoordinator: DeviceVerificationCoordinatorType {
return // TODO
}
let rootCoordinator = sself.createDeviceVerificationStartCoordinator(otherUser: otherUser, otherDevice: otherDevice)
//let rootCoordinator = sself.createDeviceVerificationStartCoordinator(otherUser: otherUser, otherDevice: otherDevice)
// TODO: To remove. Only for dev
let rootCoordinator = DeviceVerificationVerifyCoordinator(session: sself.session)
rootCoordinator.delegate = self
rootCoordinator.start()
sself.add(childCoordinator: rootCoordinator)