Add a feature flag for automatic back pagination. (#5445)

This commit is contained in:
Doug
2026-04-20 17:47:26 +01:00
committed by GitHub
parent 915007850e
commit d9013208dd
4 changed files with 16 additions and 0 deletions
@@ -201,6 +201,11 @@ class ClientProxy: ClientProxyProtocol {
self.appSettings = appSettings
self.analyticsService = analyticsService
if appSettings.automaticBackPaginationEnabled {
// Must be called before creating the sync service, timelines etc.
client.enableAutomaticBackpagination()
}
clientQueue = .init(label: "ClientProxyQueue", attributes: .concurrent)
mediaLoader = MediaLoader(client: client)