1
0
Fork 0
mirror of synced 2024-10-03 19:53:33 +13:00

Add missing provider filter for targets

This commit is contained in:
Jake Barnby 2024-01-17 15:06:10 +13:00
parent a4134d1af1
commit fe0af8e2cd
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -123,6 +123,8 @@ class Messaging extends Action
Query::equal('$id', $targetIds),
Query::limit(\count($targetIds)),
]);
$targets = \array_filter($targets, fn(Document $target) =>
$target->getAttribute('providerType') === $message->getAttribute('providerType'));
$recipients = \array_merge($recipients, $targets);
}