Skip to content
Snippets Groups Projects
Commit 4621cc5a authored by Ilias Dimopoulos's avatar Ilias Dimopoulos
Browse files

Merge remote-tracking branch 'origin/develop' into ISAICP-9575

parents 5171ad2b 2b8691fc
No related branches found
No related tags found
1 merge request!215Release 2.3.2
......@@ -170,6 +170,9 @@ protected function sendMessage(MessageInterface $message, array $recipients_meta
return array_reduce($recipients_metadata, function (bool $success, array $recipient_metadata) use ($message): bool {
if ($message instanceof AnnouncementInterface) {
$account = user_load_by_mail($recipient_metadata['options']['mail']);
if (!$account) {
return FALSE;
}
$message->setArguments($message->getArguments() + static::getAnnouncementTokenMappings());
$message->setOwner($account);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment