feat: hide from friend feed

This commit is contained in:
rhunk
2023-10-15 19:53:48 +02:00
parent 4b49d669b7
commit 4a7c7d71bc
5 changed files with 80 additions and 3 deletions

View File

@ -97,8 +97,8 @@
"whitelist": "Auto save"
}
},
"hide_chat_feed": {
"name": "Hide from Chat feed"
"hide_friend_feed": {
"name": "Hide from Friend Feed"
},
"e2e_encryption": {
"name": "Use E2E Encryption"
@ -254,6 +254,10 @@
"name": "Show Streak Expiration Info",
"description": "Shows a Streak Expiration timer next to the Streaks counter"
},
"hide_friend_feed_entry": {
"name": "Hide Friend Feed Entry",
"description": "Hides a specific friend from the Friend Feed\nUse the social tab to manage this feature"
},
"hide_streak_restore": {
"name": "Hide Streak Restore",
"description": "Hides the Restore button in the friend feed"

View File

@ -29,6 +29,7 @@ class UserInterfaceTweaks : ConfigContainer() {
val bootstrapOverride = container("bootstrap_override", BootstrapOverride()) { requireRestart() }
val mapFriendNameTags = boolean("map_friend_nametags") { requireRestart() }
val streakExpirationInfo = boolean("streak_expiration_info") { requireRestart() }
val hideFriendFeedEntry = boolean("hide_friend_feed_entry") { requireRestart() }
val hideStreakRestore = boolean("hide_streak_restore") { requireRestart() }
val hideStorySections = multiple("hide_story_sections",
"hide_friend_suggestions", "hide_friends", "hide_suggested", "hide_for_you") { requireRestart() }

View File

@ -34,7 +34,7 @@ enum class MessagingRuleType(
AUTO_DOWNLOAD("auto_download", true),
STEALTH("stealth", true),
AUTO_SAVE("auto_save", true),
HIDE_CHAT_FEED("hide_chat_feed", false, showInFriendMenu = false),
HIDE_FRIEND_FEED("hide_friend_feed", false, showInFriendMenu = false),
E2E_ENCRYPTION("e2e_encryption", false),
PIN_CONVERSATION("pin_conversation", false, showInFriendMenu = false);