Skip to content

Commit

Permalink
continue sending message event if invalid tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
koertho committed Apr 21, 2022
1 parent f319f80 commit a779f7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to this project will be documented in this file.

## [1.21.3] - 2022-04-21
- Fixed: don't stop sending message on invalid tokens in notification center

## [1.21.2] - 2022-04-21
- Fixed: uuid field leads to invalid notification center tokens

Expand Down
3 changes: 1 addition & 2 deletions classes/EventListener/FormGeneratorListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,10 @@ public function onSendNotificationMessage(Message $message, array &$tokens, stri

if (false === json_encode($tokens)) {
System::log(
'The message contained invalid tokens and could not be sent!',
sprintf("The message '%s' (ID %s) contains invalid tokens!", $message->title, $message->id),
__METHOD__,
TL_ERROR
);
return false;
}
}

Expand Down

0 comments on commit a779f7c

Please sign in to comment.