renamed function to resetRoomList

This commit is contained in:
Mauro Romito
2026-02-09 18:22:01 +01:00
committed by Mauro
parent 2830143afd
commit ff6df211d6
4 changed files with 6 additions and 6 deletions

View File

@@ -647,10 +647,10 @@ class SpaceFlowCoordinator: FlowCoordinatorProtocol {
switch flowCoordinatorResult {
case .room(let id):
stateMachine.tryEvent(.startRoomFlow(roomID: id))
spaceScreenCoordinator?.reset()
spaceScreenCoordinator?.resetRoomList()
case .space(let spaceRoomListProxy):
stateMachine.tryEvent(.startChildFlow, userInfo: spaceRoomListProxy)
spaceScreenCoordinator?.reset()
spaceScreenCoordinator?.resetRoomList()
case .cancelled, .none:
break
}

View File

@@ -94,7 +94,7 @@ final class SpaceScreenCoordinator: CoordinatorProtocol {
AnyView(SpaceScreen(context: viewModel.context))
}
func reset() {
viewModel.reset()
func resetRoomList() {
viewModel.resetRoomList()
}
}

View File

@@ -170,7 +170,7 @@ class SpaceScreenViewModel: SpaceScreenViewModelType, SpaceScreenViewModelProtoc
state.joiningRoomIDs.removeAll()
}
func reset() {
func resetRoomList() {
Task { await spaceRoomListProxy.resetAndWaitForFullReload(timeout: .seconds(10)) }
}

View File

@@ -15,5 +15,5 @@ protocol SpaceScreenViewModelProtocol {
func stop()
func reset()
func resetRoomList()
}