Move presentation and coordination logic from the RoomDetailsScreenCoordinator and into the RoomFlowCoordinator

This commit is contained in:
Stefan Ceriu
2023-11-29 10:13:49 +02:00
committed by Stefan Ceriu
parent 9a8c4d4ae5
commit 742a924037
5 changed files with 286 additions and 216 deletions
@@ -25,7 +25,7 @@ struct RoomNotificationSettingsScreenCoordinatorParameters {
}
enum RoomNotificationSettingsScreenCoordinatorAction {
case presentNotificationSettingsScreen
case presentGlobalNotificationSettingsScreen
}
final class RoomNotificationSettingsScreenCoordinator: CoordinatorProtocol {
@@ -54,7 +54,7 @@ final class RoomNotificationSettingsScreenCoordinator: CoordinatorProtocol {
viewModel.actions.sink { [weak self] action in
switch action {
case .openGlobalSettings:
self?.actionsSubject.send(.presentNotificationSettingsScreen)
self?.actionsSubject.send(.presentGlobalNotificationSettingsScreen)
case .dismiss:
self?.parameters.navigationStackCoordinator?.pop(animated: true)
}