mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-06-12 13:17:42 +02:00
feat(send_override): optional override dialog
- fix saveable snap in chat
This commit is contained in:
@ -1059,6 +1059,7 @@
|
||||
"abandon_video": "Missed Video Call"
|
||||
},
|
||||
"gallery_media_send_override": {
|
||||
"always_ask": "Always Ask",
|
||||
"ORIGINAL": "Original",
|
||||
"NOTE": "Audio Note",
|
||||
"SNAP": "Snap",
|
||||
|
@ -73,7 +73,7 @@ object DataProcessors {
|
||||
val STRING_UNIQUE_SELECTION = PropertyDataProcessor(
|
||||
type = Type.STRING_UNIQUE_SELECTION,
|
||||
serialize = { JsonPrimitive(it) },
|
||||
deserialize = { obj -> obj.takeIf { !it.isJsonNull }?.asString }
|
||||
deserialize = { obj -> obj.takeIf { !it.isJsonNull }?.asString?.takeIf { it != "false" && it != "true" } }
|
||||
)
|
||||
|
||||
val MAP_COORDINATES = PropertyDataProcessor(
|
||||
|
@ -94,7 +94,7 @@ class MessagingTweaks : ConfigContainer() {
|
||||
customOptionTranslationPath = "features.options.notifications"
|
||||
}
|
||||
val messageLogger = container("message_logger", MessageLoggerConfig()) { addNotices(FeatureNotice.UNSTABLE); requireRestart() }
|
||||
val galleryMediaSendOverride = boolean("gallery_media_send_override") { nativeHooks() }
|
||||
val galleryMediaSendOverride = unique("gallery_media_send_override", "always_ask", "SNAP", "NOTE", "SAVABLE_SNAP") { requireRestart(); nativeHooks() }
|
||||
val stripMediaMetadata = multiple("strip_media_metadata", "hide_caption_text", "hide_snap_filters", "hide_extras", "remove_audio_note_duration", "remove_audio_note_transcript_capability") { requireRestart() }
|
||||
val bypassMessageRetentionPolicy = boolean("bypass_message_retention_policy") { addNotices(FeatureNotice.UNSTABLE); requireRestart() }
|
||||
val bypassMessageActionRestrictions = boolean("bypass_message_action_restrictions") { requireRestart() }
|
||||
|
Reference in New Issue
Block a user