renamed function to resetRoomList
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -94,7 +94,7 @@ final class SpaceScreenCoordinator: CoordinatorProtocol {
|
||||
AnyView(SpaceScreen(context: viewModel.context))
|
||||
}
|
||||
|
||||
func reset() {
|
||||
viewModel.reset()
|
||||
func resetRoomList() {
|
||||
viewModel.resetRoomList()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ class SpaceScreenViewModel: SpaceScreenViewModelType, SpaceScreenViewModelProtoc
|
||||
state.joiningRoomIDs.removeAll()
|
||||
}
|
||||
|
||||
func reset() {
|
||||
func resetRoomList() {
|
||||
Task { await spaceRoomListProxy.resetAndWaitForFullReload(timeout: .seconds(10)) }
|
||||
}
|
||||
|
||||
|
||||
@@ -15,5 +15,5 @@ protocol SpaceScreenViewModelProtocol {
|
||||
|
||||
func stop()
|
||||
|
||||
func reset()
|
||||
func resetRoomList()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user