Add the JoinRoomScreen into the SpaceFlowCoordinator. (#4513)

* Add the JoinRoomScreen into the SpaceFlowCoordinator.

The screen needs further work to make the join work.

* Fix the tests completing the join flow with the right action.
This commit is contained in:
Doug
2025-09-17 15:12:45 +01:00
committed by GitHub
parent c4de609ad7
commit 27f4c25194
22 changed files with 260 additions and 92 deletions
@@ -16,8 +16,13 @@ struct JoinRoomScreenCoordinatorParameters {
let appSettings: AppSettings
}
enum JoinRoomScreenJoinDetails {
case roomID(String)
case space(SpaceRoomListProxyProtocol)
}
enum JoinRoomScreenCoordinatorAction {
case joined
case joined(JoinRoomScreenJoinDetails)
case cancelled
case presentDeclineAndBlock(userID: String)
}
@@ -46,8 +51,8 @@ final class JoinRoomScreenCoordinator: CoordinatorProtocol {
guard let self else { return }
switch action {
case .joined:
actionsSubject.send(.joined)
case .joined(let details):
actionsSubject.send(.joined(details))
case .dismiss:
actionsSubject.send(.cancelled)
case .presentDeclineAndBlock(let userID):