mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
1. Updated the space selection UI 2. Paginate spaces after room creation 3. Pre-selected space creation defaults to space members access.
This commit is contained in:
@@ -93,4 +93,8 @@ final class SpaceScreenCoordinator: CoordinatorProtocol {
|
||||
func toPresentable() -> AnyView {
|
||||
AnyView(SpaceScreen(context: viewModel.context))
|
||||
}
|
||||
|
||||
func reset() {
|
||||
viewModel.reset()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -170,6 +170,10 @@ class SpaceScreenViewModel: SpaceScreenViewModelType, SpaceScreenViewModelProtoc
|
||||
state.joiningRoomIDs.removeAll()
|
||||
}
|
||||
|
||||
func reset() {
|
||||
Task { await spaceRoomListProxy.resetAndWaitForFullReload(timeout: .seconds(10)) }
|
||||
}
|
||||
|
||||
// MARK: - Private
|
||||
|
||||
private func createChildRoom() async {
|
||||
|
||||
@@ -14,4 +14,6 @@ protocol SpaceScreenViewModelProtocol {
|
||||
var context: SpaceScreenViewModelType.Context { get }
|
||||
|
||||
func stop()
|
||||
|
||||
func reset()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user