mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Add a feature flag to reuse the last pos value for initial syncs (#5010)
This commit is contained in:
committed by
GitHub
parent
46a8a99b58
commit
61c9eb0780
+1
@@ -78,6 +78,7 @@ class RustMatrixClientFactory @Inject constructor(
|
||||
client.setUtdDelegate(UtdTracker(analyticsService))
|
||||
|
||||
val syncService = client.syncService()
|
||||
.withSharePos(enable = featureFlagService.isFeatureEnabled(FeatureFlags.SharePos))
|
||||
.withOfflineMode()
|
||||
.finish()
|
||||
|
||||
|
||||
+1
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user