Only do completeOnNewDevice if we received a confirmation code

This commit is contained in:
Hugh Nimmo-Smith 2022-10-12 13:08:01 +01:00
parent 1e1affbb7b
commit 6e58f2fa51

View file

@ -85,9 +85,9 @@ class QrCodeLoginViewModel @AssistedInject constructor(
Timber.tag(TAG).i("Established secure channel with checksum: $confirmationCode")
confirmationCode ?.let {
onConnectionEstablished(it)
}
rendezvous.completeOnNewDevice()
}
}
// if (isValidQrCode(action.qrCode)) {
// setState {
// copy(