mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
24 lines
1019 B
Swift
24 lines
1019 B
Swift
//
|
|
// Copyright 2026 Novaloop AG
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
|
|
// Please see LICENSE files in the repository root for full details.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
#if IS_MAIN_APP
|
|
/// Builds the HealthChat session-scoped hooks when a user session is created.
|
|
nonisolated struct HealthChatUserSessionHook: UserSessionHookProtocol {
|
|
func makeUserHooks(for clientProxy: ClientProxyProtocol) -> UserHooks {
|
|
let apiService = HealthChatAPIService(tokenProvider: HealthChatOpenIDTokenProvider(clientProxy: clientProxy))
|
|
return UserHooks(extendedProfileSectionHook: HealthChatExtendedProfileSectionHook(extendedProfileService: ExtendedProfileService(clientProxy: clientProxy)),
|
|
settingsScreenHook: HealthChatSettingsScreenHook(statusLoader: HealthChatAccountStatusLoader(apiService: apiService)))
|
|
}
|
|
|
|
func configure(_ userSettings: UserSettings, forHomeserver homeserver: String) -> UserSettings {
|
|
userSettings
|
|
}
|
|
}
|
|
#endif
|