mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
renamed function to resetRoomList
This commit is contained in:
@@ -647,10 +647,10 @@ class SpaceFlowCoordinator: FlowCoordinatorProtocol {
|
|||||||
switch flowCoordinatorResult {
|
switch flowCoordinatorResult {
|
||||||
case .room(let id):
|
case .room(let id):
|
||||||
stateMachine.tryEvent(.startRoomFlow(roomID: id))
|
stateMachine.tryEvent(.startRoomFlow(roomID: id))
|
||||||
spaceScreenCoordinator?.reset()
|
spaceScreenCoordinator?.resetRoomList()
|
||||||
case .space(let spaceRoomListProxy):
|
case .space(let spaceRoomListProxy):
|
||||||
stateMachine.tryEvent(.startChildFlow, userInfo: spaceRoomListProxy)
|
stateMachine.tryEvent(.startChildFlow, userInfo: spaceRoomListProxy)
|
||||||
spaceScreenCoordinator?.reset()
|
spaceScreenCoordinator?.resetRoomList()
|
||||||
case .cancelled, .none:
|
case .cancelled, .none:
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ final class SpaceScreenCoordinator: CoordinatorProtocol {
|
|||||||
AnyView(SpaceScreen(context: viewModel.context))
|
AnyView(SpaceScreen(context: viewModel.context))
|
||||||
}
|
}
|
||||||
|
|
||||||
func reset() {
|
func resetRoomList() {
|
||||||
viewModel.reset()
|
viewModel.resetRoomList()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ class SpaceScreenViewModel: SpaceScreenViewModelType, SpaceScreenViewModelProtoc
|
|||||||
state.joiningRoomIDs.removeAll()
|
state.joiningRoomIDs.removeAll()
|
||||||
}
|
}
|
||||||
|
|
||||||
func reset() {
|
func resetRoomList() {
|
||||||
Task { await spaceRoomListProxy.resetAndWaitForFullReload(timeout: .seconds(10)) }
|
Task { await spaceRoomListProxy.resetAndWaitForFullReload(timeout: .seconds(10)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,5 +15,5 @@ protocol SpaceScreenViewModelProtocol {
|
|||||||
|
|
||||||
func stop()
|
func stop()
|
||||||
|
|
||||||
func reset()
|
func resetRoomList()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user