diff options
Diffstat (limited to 'lib/Controller/EndpointController.php')
-rw-r--r-- | lib/Controller/EndpointController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Controller/EndpointController.php b/lib/Controller/EndpointController.php index 8048e9e..df56b4b 100644 --- a/lib/Controller/EndpointController.php +++ b/lib/Controller/EndpointController.php @@ -174,10 +174,11 @@ class EndpointController extends OCSController { } try { + $notification = $this->handler->getById($id, $this->getCurrentUser()); $deleted = $this->handler->deleteById($id, $this->getCurrentUser()); if ($deleted) { - $this->push->pushDeleteToDevice($this->getCurrentUser(), $id); + $this->push->pushDeleteToDevice($this->getCurrentUser(), $id, $notification->getApp()); } } catch (NotificationNotFoundException $e) { } |