Skip to content
Snippets Groups Projects
Unverified Commit 54d012b7 authored by Matthias Urhahn's avatar Matthias Urhahn Committed by GitHub
Browse files

Add comment to prevent accidentally breaking the fix for EXPOSUREAPP-4484 (#2648)

parent 2a67bd61
No related branches found
Tags v2.1.0-RC5
No related merge requests found
......@@ -126,11 +126,13 @@ class SubmissionRepository @Inject constructor(
suspend fun asyncRegisterDeviceViaTAN(tan: String) {
analyticsKeySubmissionCollector.reset()
val registrationData = submissionService.asyncRegisterDeviceViaTAN(tan)
// START - Fix for EXPOSUREAPP-4484 relies on this call order
submissionSettings.registrationToken.update {
registrationData.registrationToken
}
updateTestResult(registrationData.testResult)
submissionSettings.devicePairingSuccessfulAt = timeStamper.nowUTC
// END
backgroundNoise.scheduleDummyPattern()
analyticsKeySubmissionCollector.reportTestRegistered()
analyticsKeySubmissionCollector.reportRegisteredWithTeleTAN()
......@@ -139,11 +141,13 @@ class SubmissionRepository @Inject constructor(
suspend fun asyncRegisterDeviceViaGUID(guid: String): TestResult {
analyticsKeySubmissionCollector.reset()
val registrationData = submissionService.asyncRegisterDeviceViaGUID(guid)
// START - Fix for EXPOSUREAPP-4484 relies on this call order
submissionSettings.registrationToken.update {
registrationData.registrationToken
}
updateTestResult(registrationData.testResult)
submissionSettings.devicePairingSuccessfulAt = timeStamper.nowUTC
// END
backgroundNoise.scheduleDummyPattern()
analyticsKeySubmissionCollector.reportTestRegistered()
return registrationData.testResult
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment