Clean up the Signposter implementation and align on new metrics

This commit is contained in:
Stefan Ceriu
2026-01-28 11:59:05 +02:00
committed by Stefan Ceriu
parent 8b768f74f8
commit a2a8527ffc
10 changed files with 159 additions and 145 deletions
@@ -12,6 +12,7 @@ import MatrixRustSDK
class UserSessionStore: UserSessionStoreProtocol {
private let keychainController: KeychainControllerProtocol
private let appSettings: AppSettings
private let analyticsService: AnalyticsService
private let networkMonitor: NetworkMonitorProtocol
private let appHooks: AppHooks
@@ -31,10 +32,12 @@ class UserSessionStore: UserSessionStoreProtocol {
init(keychainController: KeychainControllerProtocol,
appSettings: AppSettings,
analyticsService: AnalyticsService,
appHooks: AppHooks,
networkMonitor: NetworkMonitorProtocol) {
self.keychainController = keychainController
self.appSettings = appSettings
self.analyticsService = analyticsService
self.appHooks = appHooks
self.networkMonitor = networkMonitor
}
@@ -159,7 +162,8 @@ class UserSessionStore: UserSessionStoreProtocol {
do {
return try await ClientProxy(client: client,
networkMonitor: networkMonitor,
appSettings: appSettings)
appSettings: appSettings,
analyticsService: analyticsService)
} catch {
throw UserSessionStoreError.failedSettingUpClientProxy(error)
}