mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 08:15:24 +00:00
dffeb4f9bb
* Add HealthChat API and extended profile services Expose OpenID tokens and homeserver credentials from the client proxy, and add fork-only services for the HealthChat member directory backend (api.healthchat.ch) plus a service that reads MSC4133 extended profile fields directly from the homeserver. Groundwork for the members tab and the profile screens. Claude-Session: https://claude.ai/code/session_013qdTbAWsZj2quQzEkagXaS * Show extended profile details on the profile screens Add a UserProfileScreenHook that lets the fork inject an extra Form section below the header of the user profile and room member details screens. The HealthChat implementation loads the MSC4133 extended profile fields and renders them with tappable phone/email/website links, hiding the section entirely for profiles without any fields. Strings live in a new fork-only HealthChat.strings table (de/en/fr, generated as HealthChatL10n via SwiftGen) since Untranslated.strings pins the English bundle. Claude-Session: https://claude.ai/code/session_013qdTbAWsZj2quQzEkagXaS
23 lines
896 B
Swift
23 lines
896 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.
|
|
//
|
|
|
|
/// Registers the HealthChat hooks.
|
|
///
|
|
/// `AppHooks` is a concrete type and `AppCoordinator` calls `setUp()` on it directly, so this method
|
|
/// wins over the empty `AppHooksProtocol` default via static dispatch — mirroring how Element's own
|
|
/// Enterprise fork provides its `setUp()`. This file is compiled only into the main app; the NSE and
|
|
/// Share Extension keep the empty default (they never drive authentication).
|
|
extension AppHooks {
|
|
func setUp() {
|
|
#if IS_MAIN_APP
|
|
registerAppSettingsHook(HealthChatAppSettingsHook())
|
|
registerCompoundHook(HealthChatCompoundHook())
|
|
registerExtendedProfileSectionHook(HealthChatExtendedProfileSectionHook())
|
|
#endif
|
|
}
|
|
}
|