feat(notification_blacklist): reactions

This commit is contained in:
rhunk
2023-10-15 23:07:09 +02:00
parent 4a7c7d71bc
commit 8f699e3902
3 changed files with 10 additions and 1 deletions

View File

@ -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)
}
}