Skip to content

Commit 672c6e7

Browse files
committed
Remove event cache feature flag
Also remove associated conditionals.
1 parent 9234de6 commit 672c6e7

File tree

5 files changed

+10
-23
lines changed

5 files changed

+10
-23
lines changed

features/roomlist/impl/src/main/kotlin/io/element/android/features/roomlist/impl/RoomListContextMenu.kt

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -193,18 +193,16 @@ private fun RoomListModalBottomSheetContent(
193193
),
194194
style = ListItemStyle.Destructive,
195195
)
196-
if (contextMenu.eventCacheFeatureFlagEnabled) {
197-
ListItem(
198-
headlineContent = {
199-
Text(text = "Clear cache for this room")
200-
},
201-
modifier = Modifier.clickable { onClearCacheRoomClick() },
202-
leadingContent = ListItemContent.Icon(
203-
iconSource = IconSource.Vector(CompoundIcons.Delete())
204-
),
205-
style = ListItemStyle.Primary,
206-
)
207-
}
196+
ListItem(
197+
headlineContent = {
198+
Text(text = "Clear cache for this room")
199+
},
200+
modifier = Modifier.clickable { onClearCacheRoomClick() },
201+
leadingContent = ListItemContent.Icon(
202+
iconSource = IconSource.Vector(CompoundIcons.Delete())
203+
),
204+
style = ListItemStyle.Primary,
205+
)
208206
}
209207
}
210208

features/roomlist/impl/src/main/kotlin/io/element/android/features/roomlist/impl/RoomListPresenter.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,6 @@ class RoomListPresenter @Inject constructor(
263263
isFavorite = event.roomSummary.isFavorite,
264264
markAsUnreadFeatureFlagEnabled = featureFlagService.isFeatureEnabled(FeatureFlags.MarkAsUnread),
265265
hasNewContent = event.roomSummary.hasNewContent,
266-
eventCacheFeatureFlagEnabled = appPreferencesStore.isDeveloperModeEnabledFlow().first() &&
267-
featureFlagService.isFeatureEnabled(FeatureFlags.EventCache),
268266
)
269267
contextMenuState.value = initialState
270268

features/roomlist/impl/src/main/kotlin/io/element/android/features/roomlist/impl/RoomListState.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ data class RoomListState(
5151
val isDm: Boolean,
5252
val isFavorite: Boolean,
5353
val markAsUnreadFeatureFlagEnabled: Boolean,
54-
val eventCacheFeatureFlagEnabled: Boolean,
5554
val hasNewContent: Boolean,
5655
) : ContextMenu
5756
}

features/roomlist/impl/src/main/kotlin/io/element/android/features/roomlist/impl/RoomListStateContextMenuShownProvider.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,4 @@ internal fun aContextMenuShown(
3131
markAsUnreadFeatureFlagEnabled = true,
3232
hasNewContent = hasNewContent,
3333
isFavorite = isFavorite,
34-
eventCacheFeatureFlagEnabled = false,
3534
)

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,6 @@ enum class FeatureFlags(
147147
defaultValue = { true },
148148
isFinished = false,
149149
),
150-
EventCache(
151-
key = "feature.event_cache",
152-
title = "Use SDK Event cache",
153-
description = "Warning: you must kill and restart the app for the change to take effect.",
154-
defaultValue = { true },
155-
isFinished = false,
156-
),
157150
PrintLogsToLogcat(
158151
key = "feature.print_logs_to_logcat",
159152
title = "Print logs to logcat",

0 commit comments

Comments
 (0)