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 ef574bd82f
commit b03240330d

View File

@ -79,8 +79,8 @@ class QrCodeLoginViewModel @AssistedInject constructor(
Timber.tag(TAG).i("Established secure channel with checksum: $confirmationCode") Timber.tag(TAG).i("Established secure channel with checksum: $confirmationCode")
confirmationCode ?.let { confirmationCode ?.let {
onConnectionEstablished(it) onConnectionEstablished(it)
rendezvous.completeOnNewDevice()
} }
rendezvous.completeOnNewDevice()
} }
// TODO. UI test purpose. Fixme remove! // TODO. UI test purpose. Fixme remove!