Glitchy room list header when scrolling

- fixed
This commit is contained in:
Gil Eluard
2022-09-01 16:56:18 +02:00
parent f8b0c61691
commit fcc1a8a404
18 changed files with 1415 additions and 214 deletions
+1 -12
View File
@@ -297,17 +297,6 @@ final class TabBarCoordinator: NSObject, TabBarCoordinatorType {
return versionCheckCoordinator
}
private func createAllChatsViewController() -> AllChatsViewControllerWithBannerWrapperViewController {
let allChatsViewController = AllChatsViewController.instantiate()
allChatsViewController.tabBarItem.tag = Int(TABBAR_HOME_INDEX)
allChatsViewController.tabBarItem.image = allChatsViewController.tabBarItem.image
allChatsViewController.accessibilityLabel = VectorL10n.allChatsTitle
allChatsViewController.userIndicatorStore = UserIndicatorStore(presenter: indicatorPresenter)
let wrapperViewController = AllChatsViewControllerWithBannerWrapperViewController(viewController: allChatsViewController)
return wrapperViewController
}
private func createHomeViewController() -> HomeViewControllerWithBannerWrapperViewController {
let homeViewController: HomeViewController = HomeViewController.instantiate()
homeViewController.tabBarItem.tag = Int(TABBAR_HOME_INDEX)
@@ -378,7 +367,7 @@ final class TabBarCoordinator: NSObject, TabBarCoordinatorType {
private func updateTabControllers(for tabBarController: MasterTabBarController, showCommunities: Bool) {
var viewControllers: [UIViewController] = []
let homeViewController = BuildSettings.isNewAppLayoutActivated ? self.createAllChatsViewController() : self.createHomeViewController()
let homeViewController = self.createHomeViewController()
viewControllers.append(homeViewController)
if !BuildSettings.isNewAppLayoutActivated {