Update files following swiftformat upgrade

This commit is contained in:
Stefan Ceriu
2026-01-27 08:47:03 +02:00
committed by Stefan Ceriu
parent fe189fcfed
commit 23062901c0
343 changed files with 1502 additions and 1048 deletions
@@ -25,7 +25,9 @@ class ChatsTabFlowCoordinator: FlowCoordinatorProtocol {
private let navigationSplitCoordinator: NavigationSplitCoordinator
private let flowParameters: CommonFlowParameters
private var userSession: UserSessionProtocol { flowParameters.userSession }
private var userSession: UserSessionProtocol {
flowParameters.userSession
}
private let stateMachine: ChatsTabFlowCoordinatorStateMachine
@@ -20,7 +20,9 @@ class MediaEventsTimelineFlowCoordinator: FlowCoordinatorProtocol {
private let navigationStackCoordinator: NavigationStackCoordinator
private let flowParameters: CommonFlowParameters
private var userSession: UserSessionProtocol { flowParameters.userSession }
private var userSession: UserSessionProtocol {
flowParameters.userSession
}
private let actionsSubject: PassthroughSubject<MediaEventsTimelineFlowCoordinatorAction, Never> = .init()
var actionsPublisher: AnyPublisher<MediaEventsTimelineFlowCoordinatorAction, Never> {
@@ -21,7 +21,9 @@ class PinnedEventsTimelineFlowCoordinator: FlowCoordinatorProtocol {
private let navigationStackCoordinator: NavigationStackCoordinator
private let flowParameters: CommonFlowParameters
private var userSession: UserSessionProtocol { flowParameters.userSession }
private var userSession: UserSessionProtocol {
flowParameters.userSession
}
private let actionsSubject: PassthroughSubject<PinnedEventsTimelineFlowCoordinatorAction, Never> = .init()
var actionsPublisher: AnyPublisher<PinnedEventsTimelineFlowCoordinatorAction, Never> {
@@ -67,7 +67,9 @@ class RoomFlowCoordinator: FlowCoordinatorProtocol {
private let navigationStackCoordinator: NavigationStackCoordinator
private let flowParameters: CommonFlowParameters
private var userSession: UserSessionProtocol { flowParameters.userSession }
private var userSession: UserSessionProtocol {
flowParameters.userSession
}
private var roomProxy: JoinedRoomProxyProtocol!
@@ -28,7 +28,7 @@ final class SpaceSettingsFlowCoordinator: FlowCoordinatorProtocol {
/// The edit address screen
case editAddress
// Other flows
/// Other flows
/// The roles and permissions screen
case rolesAndPermissionsFlow
/// The members flow screen
@@ -27,7 +27,9 @@ class UserSessionFlowCoordinator: FlowCoordinatorProtocol {
private let appLockService: AppLockServiceProtocol
private let flowParameters: CommonFlowParameters
private var userSession: UserSessionProtocol { flowParameters.userSession }
private var userSession: UserSessionProtocol {
flowParameters.userSession
}
private let onboardingFlowCoordinator: OnboardingFlowCoordinator
private let onboardingStackCoordinator: NavigationStackCoordinator
@@ -145,12 +147,12 @@ class UserSessionFlowCoordinator: FlowCoordinatorProtocol {
chatsTabFlowCoordinator.clearRoute(animated: animated)
}
// Clearing routes is more complicated than it first seems. When passing routes
// to the chats flow we can't clear all routes as e.g. childRoom/childEvent etc
// expect to push into the existing stack. But we do need to hide any sheets that
// might cover up the presented route. BUT! We probably shouldn't dismiss onboarding
// or verification flows until they're complete… This needs more thought before we
// codify it all into the state machine.
/// Clearing routes is more complicated than it first seems. When passing routes
/// to the chats flow we can't clear all routes as e.g. childRoom/childEvent etc
/// expect to push into the existing stack. But we do need to hide any sheets that
/// might cover up the presented route. BUT! We probably shouldn't dismiss onboarding
/// or verification flows until they're complete… This needs more thought before we
/// codify it all into the state machine.
private func clearPresentedSheets(animated: Bool) {
switch stateMachine.state {
case .initial, .tabBar: