Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-04-06 16:10:15 +0300
committerJoas Schilling <coding@schilljs.com>2022-04-06 16:37:54 +0300
commiteb58aa6171bad920b0ddc3fc2404e35c0ca31f94 (patch)
treee56c44d89617ed3529a77c87be5eaff854c26cd6 /lib
parentf7505e0d59b8343bc0405286fdf9c8b4da27d3dc (diff)
Remove notifications for deleted messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Notification/Notifier.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php
index 6760dc9c8..8fffb285d 100644
--- a/lib/Notification/Notifier.php
+++ b/lib/Notification/Notifier.php
@@ -378,6 +378,10 @@ class Notifier implements INotifier {
throw new AlreadyProcessedException();
}
+ if ($message->getMessageType() === 'comment_deleted') {
+ throw new AlreadyProcessedException();
+ }
+
$placeholders = $replacements = [];
foreach ($message->getMessageParameters() as $placeholder => $parameter) {
$placeholders[] = '{' . $placeholder . '}';