feat(auto_mark_as_read): snap reply

This commit is contained in:
rhunk
2024-04-17 17:43:35 +02:00
parent 6e7aa7c498
commit 785fb49aa9
5 changed files with 88 additions and 61 deletions

View File

@@ -490,7 +490,7 @@
},
"auto_mark_as_read": {
"name": "Auto Mark as Read",
"description": "Automatically marks messages as read when sending a message to a conversation, even when Stealth Mode is enabled"
"description": "Automatically marks messages/snaps as read even when Stealth Mode is enabled"
},
"loop_media_playback": {
"name": "Loop Media Playback",
@@ -1092,6 +1092,10 @@
"location_indicator": "Adds a \uD83D\uDCCD icon to snaps when they have been sent with location enabled",
"ovf_editor_indicator": "Indicates if a snap has been sent using OVF Editor",
"director_mode_indicator": "Adds a \u270F\uFE0F icon to snaps when they have been sent using Director Mode, which can be used to send gallery images as snaps"
},
"auto_mark_as_read": {
"conversation_read": "Mark conversation as read when sending a message",
"snap_reply": "Mark snaps as read when replying to them"
}
}
},

View File

@@ -55,7 +55,7 @@ class MessagingTweaks : ConfigContainer() {
val hideBitmojiPresence = boolean("hide_bitmoji_presence")
val hideTypingNotifications = boolean("hide_typing_notifications")
val unlimitedSnapViewTime = boolean("unlimited_snap_view_time")
val autoMarkAsRead = boolean("auto_mark_as_read") { requireRestart() }
val autoMarkAsRead = multiple("auto_mark_as_read", "snap_reply", "conversation_read") { requireRestart() }
val loopMediaPlayback = boolean("loop_media_playback") { requireRestart() }
val disableReplayInFF = boolean("disable_replay_in_ff")
val halfSwipeNotifier = container("half_swipe_notifier", HalfSwipeNotifierConfig()) { requireRestart()}