feat: half swipe notifier

This commit is contained in:
rhunk
2023-11-11 14:15:58 +01:00
parent a568b9c1c6
commit dc30d4ee25
6 changed files with 143 additions and 2 deletions

View File

@ -344,6 +344,10 @@
"name": "Disable Replay in FF",
"description": "Disables the ability to replay with a long press from the Friend Feed"
},
"half_swipe_notifier": {
"name": "Half Swipe Notifier",
"description": "Notifies you when someone half swipes into a conversation"
},
"message_preview_length": {
"name": "Message Preview Length",
"description": "Specify the amount of messages to get previewed"
@ -865,6 +869,12 @@
"dialog_message": "Are you sure you want to start a call?"
},
"half_swipe_notifier": {
"notification_channel_name": "Half Swipe",
"notification_content_dm": "{friend} just half-swiped into your chat for {duration} seconds",
"notification_content_group": "{friend} just half-swiped into {group} for {duration} seconds"
},
"download_processor": {
"attachment_type": {
"snap": "Snap",

View File

@ -12,6 +12,7 @@ class MessagingTweaks : ConfigContainer() {
val hideTypingNotifications = boolean("hide_typing_notifications")
val unlimitedSnapViewTime = boolean("unlimited_snap_view_time")
val disableReplayInFF = boolean("disable_replay_in_ff")
val halfSwipeNotifier = boolean("half_swipe_notifier") { requireRestart() }
val messagePreviewLength = integer("message_preview_length", defaultValue = 20)
val callStartConfirmation = boolean("call_start_confirmation") { requireRestart() }
val autoSaveMessagesInConversations = multiple("auto_save_messages_in_conversations",