mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
TabBarCoordinator: Fix space switching.
This commit is contained in:
parent
1c6ae4c835
commit
920e8e0508
1 changed files with 4 additions and 3 deletions
|
@ -77,8 +77,7 @@ final class TabBarCoordinator: NSObject, TabBarCoordinatorType {
|
|||
}
|
||||
|
||||
func start(with spaceId: String?) {
|
||||
self.currentSpaceId = spaceId
|
||||
|
||||
|
||||
// If start has been done once do not setup view controllers again
|
||||
if self.hasStartedOnce == false {
|
||||
let masterTabBarController = self.createMasterTabBarController()
|
||||
|
@ -108,8 +107,10 @@ final class TabBarCoordinator: NSObject, TabBarCoordinatorType {
|
|||
|
||||
self.updateMasterTabBarController(with: spaceId, forceReload: true)
|
||||
} else {
|
||||
self.updateMasterTabBarController(with: spaceId)
|
||||
self.updateMasterTabBarController(with: spaceId)
|
||||
}
|
||||
|
||||
self.currentSpaceId = spaceId
|
||||
}
|
||||
|
||||
func toPresentable() -> UIViewController {
|
||||
|
|
Loading…
Reference in a new issue