From fac04034f1ccd2693b3e5442051b651dd598625d Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Thu, 21 Dec 2023 15:24:55 +0100 Subject: [PATCH] Enable Chat backup, Mentions and Read Receipt in release. Also change default for debug to enabled, but keep `isFinished = false` for now, so that they are still disableable. --- .../android/libraries/featureflag/api/FeatureFlags.kt | 6 +++--- .../libraries/featureflag/impl/StaticFeatureFlagProvider.kt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/featureflag/api/src/main/kotlin/io/element/android/libraries/featureflag/api/FeatureFlags.kt b/libraries/featureflag/api/src/main/kotlin/io/element/android/libraries/featureflag/api/FeatureFlags.kt index 2b4de2ecb9..59ec586004 100644 --- a/libraries/featureflag/api/src/main/kotlin/io/element/android/libraries/featureflag/api/FeatureFlags.kt +++ b/libraries/featureflag/api/src/main/kotlin/io/element/android/libraries/featureflag/api/FeatureFlags.kt @@ -65,21 +65,21 @@ enum class FeatureFlags( key = "feature.mentions", title = "Mentions", description = "Type `@` to get mention suggestions and insert them", - defaultValue = false, + defaultValue = true, isFinished = false, ), SecureStorage( key = "feature.securestorage", title = "Chat backup", description = "Allow access to backup and restore chat history settings", - defaultValue = false, + defaultValue = true, isFinished = false, ), ReadReceipts( key = "feature.readreceipts", title = "Show read receipts", description = null, - defaultValue = false, + defaultValue = true, isFinished = false, ), } diff --git a/libraries/featureflag/impl/src/main/kotlin/io/element/android/libraries/featureflag/impl/StaticFeatureFlagProvider.kt b/libraries/featureflag/impl/src/main/kotlin/io/element/android/libraries/featureflag/impl/StaticFeatureFlagProvider.kt index a1a2c3665c..7866ac1f1f 100644 --- a/libraries/featureflag/impl/src/main/kotlin/io/element/android/libraries/featureflag/impl/StaticFeatureFlagProvider.kt +++ b/libraries/featureflag/impl/src/main/kotlin/io/element/android/libraries/featureflag/impl/StaticFeatureFlagProvider.kt @@ -39,9 +39,9 @@ class StaticFeatureFlagProvider @Inject constructor() : FeatureFlags.NotificationSettings -> true FeatureFlags.VoiceMessages -> true FeatureFlags.PinUnlock -> true - FeatureFlags.Mentions -> false - FeatureFlags.SecureStorage -> false - FeatureFlags.ReadReceipts -> false + FeatureFlags.Mentions -> true + FeatureFlags.SecureStorage -> true + FeatureFlags.ReadReceipts -> true } } else { false