mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
Add NotificationRepository, ViewModel and ViewController
This commit is contained in:
@@ -137,6 +137,12 @@ final class RoomInfoCoordinator: NSObject, RoomInfoCoordinatorType {
|
||||
return coordinator
|
||||
}
|
||||
|
||||
private func createRoomNotificationSettingsCoordinator() -> RoomNotificationSettingsCoordinator {
|
||||
let coordinator = RoomNotificationSettingsCoordinator(room: room)
|
||||
coordinator.delegate = self
|
||||
return coordinator
|
||||
}
|
||||
|
||||
private func showRoomDetails(with target: RoomInfoListTarget, animated: Bool) {
|
||||
switch target {
|
||||
case .integrations:
|
||||
@@ -153,7 +159,10 @@ final class RoomInfoCoordinator: NSObject, RoomInfoCoordinatorType {
|
||||
}
|
||||
})
|
||||
case .notifications:
|
||||
break
|
||||
let coordinator = createRoomNotificationSettingsCoordinator()
|
||||
coordinator.start()
|
||||
self.add(childCoordinator: coordinator)
|
||||
self.navigationRouter.push(coordinator, animated: true, popCompletion: nil)
|
||||
default:
|
||||
guard let tabIndex = target.tabIndex else {
|
||||
fatalError("No settings tab index for this target.")
|
||||
@@ -189,3 +198,14 @@ extension RoomInfoCoordinator: RoomParticipantsViewControllerDelegate {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
extension RoomInfoCoordinator: RoomNotificationSettingsCoordinatorDelegate {
|
||||
func roomNotificationSettingsCoordinatorDidComplete(_ coordinator: RoomNotificationSettingsCoordinatorType) {
|
||||
self.navigationRouter.popModule(animated: true)
|
||||
}
|
||||
|
||||
func roomNotificationSettingsCoordinatorDidCancel(_ coordinator: RoomNotificationSettingsCoordinatorType) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user