From 2214b3199154da5578b177cf4ddcc32843493995 Mon Sep 17 00:00:00 2001 From: Pavel Zotikov Date: Mon, 16 Sep 2024 18:51:17 +0300 Subject: [PATCH] Fix: Missed title for send message --- src/EventPayloadBuilder.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/EventPayloadBuilder.php b/src/EventPayloadBuilder.php index 9ecf469..840005e 100644 --- a/src/EventPayloadBuilder.php +++ b/src/EventPayloadBuilder.php @@ -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']);