feat: instant delete

This commit is contained in:
rhunk
2023-11-02 14:51:19 +01:00
parent 17f81eb682
commit a63bca9782
8 changed files with 132 additions and 4 deletions

View File

@ -344,6 +344,10 @@
"name": "Prevent Message Sending",
"description": "Prevents sending certain types of messages"
},
"instant_delete": {
"name": "Instant Delete",
"description": "Removes the confirmation dialog when deleting messages"
},
"better_notifications": {
"name": "Better Notifications",
"description": "Adds more information in received notifications"

View File

@ -23,6 +23,7 @@ class MessagingTweaks : ConfigContainer() {
customOptionTranslationPath = "features.options.notifications"
nativeHooks()
}
val instantDelete = boolean("instant_delete") { requireRestart() }
val betterNotifications = multiple("better_notifications", "snap", "chat", "reply_button", "download_button", "mark_as_read_button", "group") { requireRestart() }
val notificationBlacklist = multiple("notification_blacklist", *NotificationType.getIncomingValues().map { it.key }.toTypedArray()) {
customOptionTranslationPath = "features.options.notifications"