The space tweaks continue! (#4606)

* Update a string on the space announcement sheet.

* Don't show space rooms after using the join button in the space room list.

* Allow the Deselect All button to Select (almost) All as well.

* Fix the cells in the leave space sheet when there are only admin rooms.
This commit is contained in:
Doug
2025-10-09 16:56:54 +01:00
committed by GitHub
parent 40367eeec9
commit b496955f6b
15 changed files with 63 additions and 63 deletions
@@ -149,21 +149,12 @@ class SpaceScreenViewModelTests: XCTestCase {
expectation.fulfill()
return .success(())
}
let deferred = deferFulfillment(viewModel.actionsPublisher) { _ in true }
let deferredState = deferFulfillment(viewModel.context.observe(\.viewState.joiningRoomIDs), transitionValues: [[selectedSpace.id], []])
viewModel.context.send(viewAction: .spaceAction(.join(selectedSpace)))
await fulfillment(of: [expectation])
try await deferredState.fulfill()
let action = try await deferred.fulfill()
switch action {
case .selectSpace(let spaceRoomListProxy) where spaceRoomListProxy.spaceRoomProxy.id == selectedSpace.id:
break
default:
XCTFail("The join should finish by selecting the space.")
}
}
func testJoiningRoom() async throws {
@@ -176,21 +167,12 @@ class SpaceScreenViewModelTests: XCTestCase {
expectation.fulfill()
return .success(())
}
let deferred = deferFulfillment(viewModel.actionsPublisher) { _ in true }
let deferredState = deferFulfillment(viewModel.context.observe(\.viewState.joiningRoomIDs), transitionValues: [[selectedRoom.id], []])
viewModel.context.send(viewAction: .spaceAction(.join(selectedRoom)))
await fulfillment(of: [expectation])
try await deferredState.fulfill()
let action = try await deferred.fulfill()
switch action {
case .selectRoom(let roomID) where roomID == selectedRoom.id:
break
default:
XCTFail("The join should finish by selecting the room.")
}
}
func testLeavingSpace() async throws {