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:37 +0300
committerGitHub <noreply@github.com>2021-09-22 15:31:37 +0300
commitff94dbd486aef9177e8f5ad90d648391678f8b79 (patch)
tree3e4d6cea55727c498fb3983baa81db7db0f4259c
parent907dac45f0d04b18300ceb79aeb5a72808cce1e1 (diff)
parent286955516e579a29a5a4809ed20b88194b15a35b (diff)
Merge pull request #397 from nextcloud/backport/394/stable20backport/398/stable2
[stable20] 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);
}
}