mirror of
https://github.com/rhunk/SnapEnhance.git
synced 2025-05-29 13:00:17 +02:00
feat(notification_blacklist): reactions
This commit is contained in:
parent
4a7c7d71bc
commit
8f699e3902
@ -635,6 +635,9 @@
|
||||
"snap": "Snap",
|
||||
"typing": "Typing",
|
||||
"stories": "Stories",
|
||||
"chat_reaction": "Chat Reaction",
|
||||
"snap_reaction": "Snap Reaction",
|
||||
"voicenote_reaction": "Voice note Reaction",
|
||||
"initiate_audio": "Incoming Audio Call",
|
||||
"abandon_audio": "Missed Audio Call",
|
||||
"initiate_video": "Incoming Video Call",
|
||||
|
@ -20,6 +20,9 @@ enum class NotificationType (
|
||||
CHAT_REPLY("chat_reply",true),
|
||||
TYPING("typing", true),
|
||||
STORIES("stories",true),
|
||||
CHAT_REACTION("chat_reaction", true),
|
||||
SNAP_REACTION("snap_reaction", true),
|
||||
VOICENOTE_REACTION("voicenote_reaction", true),
|
||||
INITIATE_AUDIO("initiate_audio",true),
|
||||
ABANDON_AUDIO("abandon_audio", false, ContentType.STATUS_CALL_MISSED_AUDIO),
|
||||
INITIATE_VIDEO("initiate_video",true),
|
||||
|
@ -354,7 +354,10 @@ class Notifications : Feature("Notifications", loadParams = FeatureLoadParams.IN
|
||||
|
||||
context.log.debug("received message type: $messageType")
|
||||
|
||||
if (states.contains(messageType.replaceFirst("mischief_", ""))) {
|
||||
if (states.contains(messageType.replaceFirst("mischief_", "")
|
||||
.replaceFirst("group_your_", "")
|
||||
.replaceFirst("group_other_", ""))
|
||||
) {
|
||||
param.setResult(null)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user