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
@@ -22,7 +22,7 @@ final class RoomThreadListScreenCoordinator: CoordinatorProtocol {
private let viewModel: RoomThreadListScreenViewModelProtocol
private var cancellables = Set<AnyCancellable>()
private let actionsSubject: PassthroughSubject<RoomThreadListScreenCoordinatorAction, Never> = .init()
var actionsPublisher: AnyPublisher<RoomThreadListScreenCoordinatorAction, Never> {
actionsSubject.eraseToAnyPublisher()
@@ -39,7 +39,7 @@ final class RoomThreadListScreenCoordinator: CoordinatorProtocol {
viewModel.actionsPublisher.sink { [weak self] action in
guard let self else { return }
MXLog.info("Coordinator: received view model action: \(action)")
switch action {
case .presentThread(let threadRootEventID):
actionsSubject.send(.presentThread(threadRootEventID: threadRootEventID))
@@ -47,7 +47,7 @@ final class RoomThreadListScreenCoordinator: CoordinatorProtocol {
}
.store(in: &cancellables)
}
func toPresentable() -> AnyView {
AnyView(RoomThreadListScreen(context: viewModel.context))
}
@@ -19,7 +19,7 @@ class RoomThreadListScreenViewModel: RoomThreadListScreenViewModelType, RoomThre
var actionsPublisher: AnyPublisher<RoomThreadListScreenViewModelAction, Never> {
actionsSubject.eraseToAnyPublisher()
}
init(threadListServiceProxy: RoomThreadListServiceProxyProtocol, mediaProvider: MediaProviderProtocol) {
self.threadListServiceProxy = threadListServiceProxy