Browse Source

Add feature flag for voice messages (#1507)

pull/1512/head
jonnyandrew 12 months ago committed by GitHub
parent
commit
9e73d6ddc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      libraries/featureflag/api/src/main/kotlin/io/element/android/libraries/featureflag/api/FeatureFlags.kt
  2. 1
      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

@ -43,4 +43,10 @@ enum class FeatureFlags( @@ -43,4 +43,10 @@ enum class FeatureFlags(
title = "Show notification settings",
defaultValue = true,
),
VoiceMessages(
key = "feature.voicemessages",
title = "Voice messages",
description = "Send and receive voice messages",
defaultValue = false,
),
}

1
libraries/featureflag/impl/src/main/kotlin/io/element/android/libraries/featureflag/impl/StaticFeatureFlagProvider.kt

@ -35,6 +35,7 @@ class StaticFeatureFlagProvider @Inject constructor() : @@ -35,6 +35,7 @@ class StaticFeatureFlagProvider @Inject constructor() :
FeatureFlags.LocationSharing -> true
FeatureFlags.Polls -> true
FeatureFlags.NotificationSettings -> true
FeatureFlags.VoiceMessages -> false
}
} else {
false

Loading…
Cancel
Save