Merge pull request #5557 from element-hq/feature/bma/sortFF

Sort feature flags
This commit is contained in:
Benoit Marty 2025-10-17 15:26:39 +02:00 committed by GitHub
commit fa8ddba1f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 337 additions and 203 deletions

View file

@ -35,7 +35,12 @@ interface FeatureFlagService {
suspend fun setFeatureEnabled(feature: Feature, enabled: Boolean): Boolean
/**
* @return the list of available (not finished) features that can be toggled.
* @return the list of available features that can be toggled.
* @param includeFinishedFeatures whether to include finished features, default is false
* @param isInLabs whether the user is in labs (to include lab features), default is false
*/
fun getAvailableFeatures(): List<Feature>
fun getAvailableFeatures(
includeFinishedFeatures: Boolean = false,
isInLabs: Boolean = false,
): List<Feature>
}