mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 08:15:24 +00:00
25 lines
1010 B
Swift
25 lines
1010 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())
|
|
registerHomeTabsHook(HealthChatHomeTabsHook())
|
|
registerUserSessionHook(HealthChatUserSessionHook())
|
|
registerUserDetailsEditScreenHook(HealthChatUserDetailsEditScreenHook())
|
|
#endif
|
|
}
|
|
}
|