File tree 5 files changed +10
-23
lines changed
features/roomlist/impl/src/main/kotlin/io/element/android/features/roomlist/impl
libraries/featureflag/api/src/main/kotlin/io/element/android/libraries/featureflag/api 5 files changed +10
-23
lines changed Original file line number Diff line number Diff line change @@ -193,18 +193,16 @@ private fun RoomListModalBottomSheetContent(
193
193
),
194
194
style = ListItemStyle .Destructive ,
195
195
)
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
+ )
208
206
}
209
207
}
210
208
Original file line number Diff line number Diff line change @@ -263,8 +263,6 @@ class RoomListPresenter @Inject constructor(
263
263
isFavorite = event.roomSummary.isFavorite,
264
264
markAsUnreadFeatureFlagEnabled = featureFlagService.isFeatureEnabled(FeatureFlags .MarkAsUnread ),
265
265
hasNewContent = event.roomSummary.hasNewContent,
266
- eventCacheFeatureFlagEnabled = appPreferencesStore.isDeveloperModeEnabledFlow().first() &&
267
- featureFlagService.isFeatureEnabled(FeatureFlags .EventCache ),
268
266
)
269
267
contextMenuState.value = initialState
270
268
Original file line number Diff line number Diff line change @@ -51,7 +51,6 @@ data class RoomListState(
51
51
val isDm : Boolean ,
52
52
val isFavorite : Boolean ,
53
53
val markAsUnreadFeatureFlagEnabled : Boolean ,
54
- val eventCacheFeatureFlagEnabled : Boolean ,
55
54
val hasNewContent : Boolean ,
56
55
) : ContextMenu
57
56
}
Original file line number Diff line number Diff line change @@ -31,5 +31,4 @@ internal fun aContextMenuShown(
31
31
markAsUnreadFeatureFlagEnabled = true ,
32
32
hasNewContent = hasNewContent,
33
33
isFavorite = isFavorite,
34
- eventCacheFeatureFlagEnabled = false ,
35
34
)
Original file line number Diff line number Diff line change @@ -147,13 +147,6 @@ enum class FeatureFlags(
147
147
defaultValue = { true },
148
148
isFinished = false ,
149
149
),
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
- ),
157
150
PrintLogsToLogcat (
158
151
key = " feature.print_logs_to_logcat" ,
159
152
title = " Print logs to logcat" ,
You can’t perform that action at this time.
0 commit comments