code restyle for poll detail

This commit is contained in:
Flavio Alescio
2023-01-31 16:03:38 +01:00
parent 2407ee9842
commit 2f51f66d5e
11 changed files with 80 additions and 105 deletions
@@ -178,11 +178,11 @@ final class RoomInfoCoordinator: NSObject, RoomInfoCoordinatorType {
case .pollHistory:
let coordinator: PollHistoryCoordinator = .init(parameters: .init(mode: .active, room: room, navigationRouter: navigationRouter))
coordinator.start()
push(coordinator: coordinator)
coordinator.completion = { [weak self] event in
guard let self else { return }
self.delegate?.roomInfoCoordinator(self, viewEventInTimeline: event)
}
push(coordinator: coordinator)
default:
guard let tabIndex = target.tabIndex else {
fatalError("No settings tab index for this target.")