Run SwiftFormat.

This commit is contained in:
Doug
2026-05-27 14:38:50 +01:00
committed by Doug
parent 5138e05e47
commit fa67713726
573 changed files with 2426 additions and 2426 deletions
@@ -25,7 +25,7 @@ final class ReportRoomScreenCoordinator: CoordinatorProtocol {
private let viewModel: ReportRoomScreenViewModelProtocol
private var cancellables = Set<AnyCancellable>()
private let actionsSubject: PassthroughSubject<ReportRoomScreenCoordinatorAction, Never> = .init()
var actionsPublisher: AnyPublisher<ReportRoomScreenCoordinatorAction, Never> {
actionsSubject.eraseToAnyPublisher()
@@ -48,7 +48,7 @@ final class ReportRoomScreenCoordinator: CoordinatorProtocol {
}
.store(in: &cancellables)
}
func toPresentable() -> AnyView {
AnyView(ReportRoomScreen(context: viewModel.context))
}
@@ -19,7 +19,7 @@ class ReportRoomScreenViewModel: ReportRoomScreenViewModelType, ReportRoomScreen
var actionsPublisher: AnyPublisher<ReportRoomScreenViewModelAction, Never> {
actionsSubject.eraseToAnyPublisher()
}
init(roomProxy: JoinedRoomProxyProtocol, userIndicatorController: UserIndicatorControllerProtocol) {
self.roomProxy = roomProxy
self.userIndicatorController = userIndicatorController
@@ -36,7 +36,7 @@ class ReportRoomScreenViewModel: ReportRoomScreenViewModelType, ReportRoomScreen
actionsSubject.send(.dismiss(shouldLeaveRoom: false))
}
}
private func report() async {
showLoadingIndicator()
let result = await roomProxy.reportRoom(reason: state.bindings.reason)