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:19 +0300
committerGitHub <noreply@github.com>2021-09-22 15:31:19 +0300
commit5d3f32b4b355b22671c15268c5e59b2ea31687a3 (patch)
tree32806214ddbef98761f95e422a8ad430dd0a827d
parent491df306f895f0ed08d92a5abe752772119156b2 (diff)
parent78f8e891df51b6cd11686f19a25782876324d6c7 (diff)
Merge pull request #396 from nextcloud/backport/394/stable21
[stable21] 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 a1c9a97..b2aa0fc 100644
--- a/lib/BackgroundJob.php
+++ b/lib/BackgroundJob.php
@@ -123,6 +123,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);
}
}