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

github.com/nextcloud/announcementcenter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-09-22 15:31:03 +0300
committerGitHub <noreply@github.com>2021-09-22 15:31:03 +0300
commit1e2e0d5a3ff3d11120095aa8964b12056f22c1f4 (patch)
tree400ec1f3a43ed906d8269f31c05c987b23227d5d
parent424ddf4a8191e7b468b3faa6a49e74b8f0643716 (diff)
parentb451c7732d6478b163984f7a9c39caffc381d1cd (diff)
Merge pull request #395 from nextcloud/backport/394/stable22
[stable22] Fixed the case when multiple announcements are added for the same gro…
-rw-r--r--lib/BackgroundJob.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/BackgroundJob.php b/lib/BackgroundJob.php
index 7f2fe9d..17d5c7a 100644
--- a/lib/BackgroundJob.php
+++ b/lib/BackgroundJob.php
@@ -127,6 +127,7 @@ class BackgroundJob extends QueuedJob {
if (\in_array('everyone', $groups, true)) {
$this->createPublicityEveryone($announcement->getUser(), $event, $notification, $publicity);
} else {
+ $this->notifiedUsers = [];
$this->createPublicityGroups($announcement->getUser(), $event, $notification, $groups, $publicity);
}
}