mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Add a feature flag for the event cache.
This commit is contained in:
+7
@@ -161,4 +161,11 @@ enum class FeatureFlags(
|
|||||||
defaultValue = { buildMeta -> buildMeta.buildType != BuildType.RELEASE },
|
defaultValue = { buildMeta -> buildMeta.buildType != BuildType.RELEASE },
|
||||||
isFinished = false,
|
isFinished = false,
|
||||||
),
|
),
|
||||||
|
EventCache(
|
||||||
|
key = "feature.event_cache",
|
||||||
|
title = "Use SDK Event cache",
|
||||||
|
description = "Warning: you must kill and restart the app for the change to take effect.",
|
||||||
|
defaultValue = { false },
|
||||||
|
isFinished = false,
|
||||||
|
),
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-3
@@ -109,9 +109,7 @@ class RustMatrixClientFactory @Inject constructor(
|
|||||||
.addRootCertificates(userCertificatesProvider.provides())
|
.addRootCertificates(userCertificatesProvider.provides())
|
||||||
.autoEnableBackups(true)
|
.autoEnableBackups(true)
|
||||||
.autoEnableCrossSigning(true)
|
.autoEnableCrossSigning(true)
|
||||||
// TODO Add a feature flag to enable persistent storage
|
.useEventCachePersistentStorage(featureFlagService.isFeatureEnabled(FeatureFlags.EventCache))
|
||||||
// See https://github.com/matrix-org/matrix-rust-sdk/pull/4396
|
|
||||||
.useEventCachePersistentStorage(false)
|
|
||||||
.roomKeyRecipientStrategy(
|
.roomKeyRecipientStrategy(
|
||||||
strategy = if (featureFlagService.isFeatureEnabled(FeatureFlags.OnlySignedDeviceIsolationMode)) {
|
strategy = if (featureFlagService.isFeatureEnabled(FeatureFlags.OnlySignedDeviceIsolationMode)) {
|
||||||
CollectStrategy.IdentityBasedStrategy
|
CollectStrategy.IdentityBasedStrategy
|
||||||
|
|||||||
Reference in New Issue
Block a user