mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Manually cancel the identity reset handle when dismissing the EncryptionReset screen.
This commit is contained in:
committed by
Stefan Ceriu
parent
4617d0c255
commit
13d2fa7060
+4
@@ -64,6 +64,10 @@ final class EncryptionResetScreenCoordinator: CoordinatorProtocol {
|
|||||||
}
|
}
|
||||||
.store(in: &cancellables)
|
.store(in: &cancellables)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func stop() {
|
||||||
|
viewModel.stop()
|
||||||
|
}
|
||||||
|
|
||||||
func toPresentable() -> AnyView {
|
func toPresentable() -> AnyView {
|
||||||
AnyView(EncryptionResetScreen(context: viewModel.context))
|
AnyView(EncryptionResetScreen(context: viewModel.context))
|
||||||
|
|||||||
+6
@@ -61,6 +61,12 @@ class EncryptionResetScreenViewModel: EncryptionResetScreenViewModelType, Encryp
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func stop() {
|
||||||
|
Task {
|
||||||
|
await identityResetHandle?.cancel()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// MARK: - Private
|
// MARK: - Private
|
||||||
|
|
||||||
private func startResetFlow() async {
|
private func startResetFlow() async {
|
||||||
|
|||||||
+1
@@ -22,4 +22,5 @@ protocol EncryptionResetScreenViewModelProtocol {
|
|||||||
var context: EncryptionResetScreenViewModelType.Context { get }
|
var context: EncryptionResetScreenViewModelType.Context { get }
|
||||||
|
|
||||||
func continueResetFlowWith(password: String)
|
func continueResetFlowWith(password: String)
|
||||||
|
func stop()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user