Skip to content

Commit

Permalink
Fix unfinished comment about onboarding flow verification state liste…
Browse files Browse the repository at this point in the history
…ning.
  • Loading branch information
stefanceriu committed Sep 6, 2024
1 parent 2da4059 commit 0f3b33c
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ class OnboardingFlowCoordinator: FlowCoordinatorProtocol {

stateMachine = .init(state: .initial)

// Always react to verification changes, not only when freshly
// verified from
// Verification can change as part of the onboarding flow by verifying with
// another device, using a recovery key or by resetting one's crypto identity.
// It can also happen that onboarding started before it had a chance to update,
// usually seen when registering a new account.
// Handle all those cases here instead of spreading them throughout the code.
verificationStateCancellable = userSession.sessionSecurityStatePublisher
.map(\.verificationState)
.removeDuplicates()
Expand Down

0 comments on commit 0f3b33c

Please sign in to comment.