diff options
author | Joas Schilling <coding@schilljs.com> | 2022-02-24 13:39:13 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-02-24 18:12:29 +0300 |
commit | 240a5cdb5400b2596073f45c5192dd5c54a3f90a (patch) | |
tree | cad1f5569b1257278327f62cd1d18c39efebc9c8 /lib | |
parent | 9c45cf58ab8ea3df4d67e45cc1a1ed60a3130fcb (diff) |
Do not read the notification we just inserted
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/App.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/App.php b/lib/App.php index c14a6b5..6e5017b 100644 --- a/lib/App.php +++ b/lib/App.php @@ -54,8 +54,7 @@ class App implements IDeferrableApp { $notificationId = $this->handler->add($notification); try { - $notificationToPush = $this->handler->getById($notificationId, $notification->getUser()); - $this->push->pushToDevice($notificationId, $notificationToPush); + $this->push->pushToDevice($notificationId, $notification); } catch (NotificationNotFoundException $e) { throw new \InvalidArgumentException('Error while preparing push notification'); } |