Skip to content

Commit

Permalink
Merge pull request #834 from nextcloud/fix/noid/avoid-duplicate-mail
Browse files Browse the repository at this point in the history
avoid duplicate recipients
  • Loading branch information
ArtificialOwl authored Oct 25, 2021
2 parents 637bdab + 05152f8 commit 32ac00b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/GlobalScale/MemberAdd.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,13 @@ public function result(array $events): void {
$recipients = [$member->getUserId()];
}

$done = [];
foreach ($recipients as $recipient) {
if (in_array($recipient, $done)) {
continue;
}

$done[] = $recipient;
$this->memberIsMailbox($circle, $recipient, $links, $password);
}
}
Expand Down

0 comments on commit 32ac00b

Please sign in to comment.