Add a feature flag to reuse the last pos value for initial syncs (#5010)
This commit is contained in:
parent
46a8a99b58
commit
61c9eb0780
4 changed files with 12 additions and 1 deletions
|
|
@ -78,6 +78,7 @@ class RustMatrixClientFactory @Inject constructor(
|
|||
client.setUtdDelegate(UtdTracker(analyticsService))
|
||||
|
||||
val syncService = client.syncService()
|
||||
.withSharePos(enable = featureFlagService.isFeatureEnabled(FeatureFlags.SharePos))
|
||||
.withOfflineMode()
|
||||
.finish()
|
||||
|
||||
|
|
|
|||
|
|
@ -13,5 +13,6 @@ import org.matrix.rustcomponents.sdk.SyncServiceBuilder
|
|||
|
||||
class FakeFfiSyncServiceBuilder : SyncServiceBuilder(NoPointer) {
|
||||
override fun withOfflineMode(): SyncServiceBuilder = this
|
||||
override fun withSharePos(enable: Boolean): SyncServiceBuilder = this
|
||||
override suspend fun finish(): SyncService = FakeFfiSyncService()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue