mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user