Skip to content

Commit

Permalink
remove exception when recipient is external id
Browse files Browse the repository at this point in the history
  • Loading branch information
Rédoine SEREIR committed Apr 6, 2024
1 parent 24fda8c commit 93977fc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions OneSignalTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ protected function doSend(MessageInterface $message): SentMessage

$recipientId = $message->getRecipientId() ?? $this->defaultRecipientId;

if (null === $recipientId) {
throw new LogicException(sprintf('The "%s" transport should have configured `defaultRecipientId` via DSN or provided with message options.', __CLASS__));
}

$options = $options?->toArray() ?? [];
$options['app_id'] = $this->appId;
$options['include_player_ids'] = [$recipientId];
Expand Down

0 comments on commit 93977fc

Please sign in to comment.