refactor(ui_tweaks): hide suggested section

This commit is contained in:
rhunk
2023-09-16 12:31:00 +02:00
parent 9cb9bd7a26
commit 82658d3ad9
3 changed files with 3 additions and 3 deletions

View File

@ -603,7 +603,7 @@
"hide_story_sections": {
"hide_friend_suggestions": "Hide friend suggestions",
"hide_friends": "Hide friends section",
"hide_following": "Hide following section",
"hide_suggested": "Hide suggested section",
"hide_for_you": "Hide For You section"
},
"home_tab": {

View File

@ -22,7 +22,7 @@ class UserInterfaceTweaks : ConfigContainer() {
val mapFriendNameTags = boolean("map_friend_nametags")
val streakExpirationInfo = boolean("streak_expiration_info")
val hideStorySections = multiple("hide_story_sections",
"hide_friend_suggestions", "hide_friends", "hide_following", "hide_for_you")
"hide_friend_suggestions", "hide_friends", "hide_suggested", "hide_for_you")
val hideUiComponents = multiple("hide_ui_components",
"hide_voice_record_button",
"hide_stickers_button",

View File

@ -103,7 +103,7 @@ class UITweaks : Feature("UITweaks", loadParams = FeatureLoadParams.ACTIVITY_CRE
}
}
if (hideStorySections.contains("hide_following") && (viewId == getIdentifier("df_small_story", "id"))
if (hideStorySections.contains("hide_suggested") && (viewId == getIdentifier("df_small_story", "id"))
) {
hideStorySection(event)
}