Add flag for automatic back pagination feature (#6637)

This commit is contained in:
Jorge Martin Espinosa 2026-04-21 16:42:44 +02:00 committed by GitHub
parent 50657005e2
commit 0377fc86d0
2 changed files with 13 additions and 0 deletions

View file

@ -105,6 +105,11 @@ class RustMatrixClientFactory(
suspend fun create(client: Client): RustMatrixClient {
val (anonymizedAccessToken, anonymizedRefreshToken) = client.session().anonymizedTokens()
// Must be called before creating the sync service, timelines etc.
if (featureFlagService.isFeatureEnabled(FeatureFlags.AutomaticBackPagination)) {
client.enableAutomaticBackpagination()
}
client.setUtdDelegate(UtdTracker(analyticsService))
val syncService = client.syncService()