Fix toggling 'show all activity in room list' not working (#7871)

Toggling this value had no effect because the feature was marked as finished so it wouldn't be displayed in the developer settings, which makes our code ignore any user-set value for it.

Instead, just create a `Feature` outside the `FeatureFlags` enum.
This commit is contained in:
Jorge Martin Espinosa
2026-10-07 10:09:25 +02:00
committed by GitHub
parent 03ea0ecc27
commit 3944cb3bfc
8 changed files with 35 additions and 27 deletions
@@ -169,13 +169,19 @@ enum class FeatureFlags(
defaultValue = { false },
isFinished = false,
),
ShowAllActivityInRoomList(
key = "feature.show_all_activity_in_room_list",
title = "Show all activity in room list",
description = "Show all activity indicators in the room list, using unread messages instead of notifications.",
defaultValue = { true },
// To hide it from the developer options, since it's displayed in the notification settings instead
isFinished = true,
isInLabs = false,
)
}
/**
* Feature flag to show all activity indicators in the room list, using unread messages instead of notifications.
*
* This is separate from the [FeatureFlags] enum because it is not a feature flag that can be toggled in developer options,
* but rather a setting that can be toggled in the app settings.
*/
object ShowAllActivityInRoomListFeature : Feature {
override val key: String = "feature.show_all_activity_in_room_list"
override val title: String = "Show all activity in room list"
override val description: String = "Show all activity indicators in the room list, using unread messages instead of notifications."
override val defaultValue: (BuildMeta) -> Boolean = { true }
override val isFinished: Boolean = false
override val isInLabs: Boolean = false
}