mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 20:09:04 +00:00
Prevent the dismissal callback from being called multiple times if changes happen on the navigation coordinators directly from it
This commit is contained in:
committed by
Stefan Ceriu
parent
ee2d770579
commit
9ace5ac74c
@@ -36,9 +36,11 @@ class NavigationModule: Identifiable, Hashable {
|
|||||||
|
|
||||||
func tearDown() {
|
func tearDown() {
|
||||||
coordinator?.stop()
|
coordinator?.stop()
|
||||||
dismissalCallback?()
|
|
||||||
coordinator = nil
|
coordinator = nil
|
||||||
|
|
||||||
|
let callback = dismissalCallback
|
||||||
dismissalCallback = nil
|
dismissalCallback = nil
|
||||||
|
callback?()
|
||||||
}
|
}
|
||||||
|
|
||||||
nonisolated static func == (lhs: NavigationModule, rhs: NavigationModule) -> Bool {
|
nonisolated static func == (lhs: NavigationModule, rhs: NavigationModule) -> Bool {
|
||||||
|
|||||||
Reference in New Issue
Block a user