Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Fix: Resetting checkins race conditions (EXPOSUREAPP-14556) #5799

Merged
merged 2 commits into from
Jan 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class SrsSymptomsCalendarViewModel @AssistedInject constructor(
symptomStartInternal.value = startOf
}

private fun resetPreviousSubmissionConsents() = launch {
private suspend fun resetPreviousSubmissionConsents() {
try {
Timber.d("Trying to reset submission consents")
checkInRepository.apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class SrsSymptomsIntroductionViewModel @AssistedInject constructor(
fun onTruncatedDialogClick() =
events.postValue(SrsSymptomsIntroductionNavigation.GoToThankYouScreen)

private fun resetPreviousSubmissionConsents() = launch {
private suspend fun resetPreviousSubmissionConsents() {
try {
Timber.d("Trying to reset submission consents")
checkInRepository.apply {
Expand Down