mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00
Fix unfinished comment about onboarding flow verification state listening.
This commit is contained in:
parent
2da4059718
commit
0f3b33c5ae
@ -86,8 +86,11 @@ class OnboardingFlowCoordinator: FlowCoordinatorProtocol {
|
|||||||
|
|
||||||
stateMachine = .init(state: .initial)
|
stateMachine = .init(state: .initial)
|
||||||
|
|
||||||
// Always react to verification changes, not only when freshly
|
// Verification can change as part of the onboarding flow by verifying with
|
||||||
// verified from
|
// 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
|
verificationStateCancellable = userSession.sessionSecurityStatePublisher
|
||||||
.map(\.verificationState)
|
.map(\.verificationState)
|
||||||
.removeDuplicates()
|
.removeDuplicates()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user