Have the UserIndicatorController use a separate window, switch to using one single instance throughout the application

This commit is contained in:
Stefan Ceriu
2023-11-09 15:10:50 +02:00
committed by Stefan Ceriu
parent 1102beb3dd
commit 4b26a798dc
44 changed files with 210 additions and 221 deletions
@@ -44,7 +44,7 @@ class CreateRoomScreenViewModelTests: XCTestCase {
createRoomParameters: .init(parameters),
selectedUsers: usersSubject.asCurrentValuePublisher(),
analytics: ServiceLocator.shared.analytics,
userIndicatorController: nil)
userIndicatorController: UserIndicatorControllerMock())
self.viewModel = viewModel
viewModel.actions.sink { [weak self] action in
@@ -39,7 +39,7 @@ class StartChatScreenViewModelTests: XCTestCase {
viewModel = StartChatScreenViewModel(userSession: userSession,
appSettings: ServiceLocator.shared.settings,
analytics: ServiceLocator.shared.analytics,
userIndicatorController: nil,
userIndicatorController: UserIndicatorControllerMock(),
userDiscoveryService: userDiscoveryService)
AppSettings.reset()
@@ -25,7 +25,7 @@ class UserIndicatorControllerTests: XCTestCase {
private var indicatorController: UserIndicatorController!
override func setUp() {
indicatorController = UserIndicatorController(rootCoordinator: PlaceholderScreenCoordinator())
indicatorController = UserIndicatorController()
}
func testIndicatorQueueing() {