mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:02:10 +00:00
a838a03a1f
The rebase onto release/26.09.1 moved three things the fork depends on. Upstream now owns a UserProfileScreenHook of its own (#5980), which rewrites a screen's view state rather than injecting a view. The fork's section hook keeps its behaviour under the fork-only name ExtendedProfileSectionHook, so both can live side by side and upstream's file stays untouched. Upstream's new @AppHook macro generates the same register<Name> methods, so registration is unchanged. UserProfileScreenCoordinatorParameters lost appSettings and reordered its arguments, and UserDetailsEditScreenCoordinator now publishes its own UserDetailsEditScreenCoordinatorAction instead of borrowing the room one (#5893). The members flow and the profile editor follow both. AppSettings.override gained oAuthClientURIPath (#5934), whose default appends apps/ios to the website URL. HealthChat passes nil to keep the registered client_uri at https://healthchat.ch exactly as the shipped build has it — changing what the app registers with MAS is not a side effect a rebase should have.
26 lines
967 B
Swift
26 lines
967 B
Swift
//
|
|
// Copyright 2026 Element Creations Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
|
// Please see LICENSE files in the repository root for full details.
|
|
//
|
|
|
|
import Combine
|
|
import SwiftUI
|
|
|
|
@MainActor protocol UserDetailsEditCoordinatorProtocol: CoordinatorProtocol {
|
|
var actions: AnyPublisher<UserDetailsEditScreenCoordinatorAction, Never> { get }
|
|
}
|
|
|
|
nonisolated protocol UserDetailsEditScreenHookProtocol: Sendable {
|
|
@MainActor func makeCoordinator(parameters: UserDetailsEditScreenCoordinatorParameters) -> any UserDetailsEditCoordinatorProtocol
|
|
}
|
|
|
|
struct DefaultUserDetailsEditScreenHook: UserDetailsEditScreenHookProtocol {
|
|
@MainActor func makeCoordinator(parameters: UserDetailsEditScreenCoordinatorParameters) -> any UserDetailsEditCoordinatorProtocol {
|
|
UserDetailsEditScreenCoordinator(parameters: parameters)
|
|
}
|
|
}
|
|
|
|
extension UserDetailsEditScreenCoordinator: UserDetailsEditCoordinatorProtocol { }
|