Skip to content

Commit

Permalink
Merge pull request #57 from pavelzotikov/fix-missed-title-for-send-me…
Browse files Browse the repository at this point in the history
…ssage

Fix: Missed `title` for sendMessage
  • Loading branch information
pavelzotikov authored Sep 16, 2024
2 parents 296c740 + 2214b31 commit f4b3c40
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/EventPayloadBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ public function create(array $data): EventPayload
{
$eventPayload = new EventPayload();

if (!empty($data['title'])) {
$eventPayload->setTitle($data['title']);
}

$eventPayload->setContext($data['context']);
$eventPayload->setUser($data['user']);

Expand Down

0 comments on commit f4b3c40

Please sign in to comment.