Enable the User Status feature on supported homeservers. (#6059)

* Remove the user status feature flag.

* Handle User Status in tests.
This commit is contained in:
Doug
2026-08-24 11:00:31 +01:00
committed by GitHub
parent 1ba090b914
commit 84556c0672
16 changed files with 32 additions and 41 deletions
@@ -281,8 +281,7 @@ class ClientProxy: ClientProxyProtocol {
try await client.setUtdDelegate(utdDelegate: ClientDecryptionErrorDelegate(actionsSubject: actionsSubject))
let canSubscribeToUserProfile = if appSettings.userStatusEnabled,
await (try? client.isProfilesSlidingSyncExtensionSupported()) == true {
let canSubscribeToUserProfile = if await (try? client.isProfilesSlidingSyncExtensionSupported()) == true {
true
} else {
false
@@ -311,11 +310,9 @@ class ClientProxy: ClientProxyProtocol {
mediaPreviewConfigListenerTaskHandle = await createMediaPreviewConfigObserver()
}
if appSettings.userStatusEnabled {
Task {
guard case .success(true) = await isUserStatusSupported() else { return }
client.enableAutomaticCallStatus(enabled: true)
}
Task {
guard case .success(true) = await isUserStatusSupported() else { return }
client.enableAutomaticCallStatus(enabled: true)
}
liveLocationOwnInfoUpdatesListenerTaskHandle = createLiveLocationOwnInfoUpdatesObserver()
@@ -1531,14 +1528,12 @@ private struct ClientProxyServices {
init(client: ClientProtocol,
notificationSettings: NotificationSettingsProxyProtocol,
appSettings: AppSettings) async throws {
var syncServiceBuilder = client
let syncService = try await client
.syncService()
.withOfflineMode()
.withSharePos(enable: true)
if appSettings.userStatusEnabled {
syncServiceBuilder = syncServiceBuilder.withProfilesExtension()
}
let syncService = try await syncServiceBuilder.finish()
.withProfilesExtension()
.finish()
let roomListService = syncService.roomListService()