Browse Source

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.
pull/2087/head
Benoit Marty 9 months ago committed by Benoit Marty
parent
commit
fac04034f1
  1. 6
      libraries/featureflag/api/src/main/kotlin/io/element/android/libraries/featureflag/api/FeatureFlags.kt
  2. 6
      libraries/featureflag/impl/src/main/kotlin/io/element/android/libraries/featureflag/impl/StaticFeatureFlagProvider.kt

6
libraries/featureflag/api/src/main/kotlin/io/element/android/libraries/featureflag/api/FeatureFlags.kt

@ -65,21 +65,21 @@ enum class FeatureFlags(
key = "feature.mentions", key = "feature.mentions",
title = "Mentions", title = "Mentions",
description = "Type `@` to get mention suggestions and insert them", description = "Type `@` to get mention suggestions and insert them",
defaultValue = false, defaultValue = true,
isFinished = false, isFinished = false,
), ),
SecureStorage( SecureStorage(
key = "feature.securestorage", key = "feature.securestorage",
title = "Chat backup", title = "Chat backup",
description = "Allow access to backup and restore chat history settings", description = "Allow access to backup and restore chat history settings",
defaultValue = false, defaultValue = true,
isFinished = false, isFinished = false,
), ),
ReadReceipts( ReadReceipts(
key = "feature.readreceipts", key = "feature.readreceipts",
title = "Show read receipts", title = "Show read receipts",
description = null, description = null,
defaultValue = false, defaultValue = true,
isFinished = false, isFinished = false,
), ),
} }

6
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.NotificationSettings -> true
FeatureFlags.VoiceMessages -> true FeatureFlags.VoiceMessages -> true
FeatureFlags.PinUnlock -> true FeatureFlags.PinUnlock -> true
FeatureFlags.Mentions -> false FeatureFlags.Mentions -> true
FeatureFlags.SecureStorage -> false FeatureFlags.SecureStorage -> true
FeatureFlags.ReadReceipts -> false FeatureFlags.ReadReceipts -> true
} }
} else { } else {
false false

Loading…
Cancel
Save