Remove event cache feature flag (#4719)

This commit is contained in:
Jorge Martin Espinosa
2025-05-15 09:42:18 +02:00
committed by GitHub
parent 1599e038d4
commit 44d77a6048
6 changed files with 8 additions and 16 deletions

View File

@@ -193,7 +193,7 @@ private fun RoomListModalBottomSheetContent(
),
style = ListItemStyle.Destructive,
)
if (contextMenu.eventCacheFeatureFlagEnabled) {
if (contextMenu.displayClearRoomCacheAction) {
ListItem(
headlineContent = {
Text(text = "Clear cache for this room")

View File

@@ -264,8 +264,7 @@ class RoomListPresenter @Inject constructor(
isFavorite = event.roomSummary.isFavorite,
markAsUnreadFeatureFlagEnabled = featureFlagService.isFeatureEnabled(FeatureFlags.MarkAsUnread),
hasNewContent = event.roomSummary.hasNewContent,
eventCacheFeatureFlagEnabled = appPreferencesStore.isDeveloperModeEnabledFlow().first() &&
featureFlagService.isFeatureEnabled(FeatureFlags.EventCache),
displayClearRoomCacheAction = appPreferencesStore.isDeveloperModeEnabledFlow().first(),
)
contextMenuState.value = initialState

View File

@@ -51,8 +51,8 @@ data class RoomListState(
val isDm: Boolean,
val isFavorite: Boolean,
val markAsUnreadFeatureFlagEnabled: Boolean,
val eventCacheFeatureFlagEnabled: Boolean,
val hasNewContent: Boolean,
val displayClearRoomCacheAction: Boolean,
) : ContextMenu
}

View File

@@ -31,5 +31,5 @@ internal fun aContextMenuShown(
markAsUnreadFeatureFlagEnabled = true,
hasNewContent = hasNewContent,
isFavorite = isFavorite,
eventCacheFeatureFlagEnabled = false,
displayClearRoomCacheAction = false,
)

View File

@@ -297,8 +297,8 @@ class RoomListPresenterTest {
isDm = false,
isFavorite = false,
markAsUnreadFeatureFlagEnabled = true,
eventCacheFeatureFlagEnabled = false,
hasNewContent = false,
displayClearRoomCacheAction = false,
)
)
}
@@ -315,8 +315,8 @@ class RoomListPresenterTest {
isDm = false,
isFavorite = true,
markAsUnreadFeatureFlagEnabled = true,
eventCacheFeatureFlagEnabled = false,
hasNewContent = false,
displayClearRoomCacheAction = false,
)
)
}
@@ -344,8 +344,8 @@ class RoomListPresenterTest {
isFavorite = false,
markAsUnreadFeatureFlagEnabled = true,
// true here.
eventCacheFeatureFlagEnabled = true,
hasNewContent = false,
displayClearRoomCacheAction = true,
)
)
}
@@ -375,8 +375,8 @@ class RoomListPresenterTest {
isDm = false,
isFavorite = false,
markAsUnreadFeatureFlagEnabled = true,
eventCacheFeatureFlagEnabled = false,
hasNewContent = false,
displayClearRoomCacheAction = false,
)
)

View File

@@ -147,13 +147,6 @@ enum class FeatureFlags(
defaultValue = { true },
isFinished = false,
),
EventCache(
key = "feature.event_cache",
title = "Use SDK Event cache",
description = "Warning: you must kill and restart the app for the change to take effect.",
defaultValue = { true },
isFinished = false,
),
PrintLogsToLogcat(
key = "feature.print_logs_to_logcat",
title = "Print logs to logcat",