From c8236993f4bf3ae6369c0a436fc0b61e5f53b678 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 13 Jul 2020 12:30:51 +0200 Subject: Also check for internet on delete push Signed-off-by: Roeland Jago Douma --- lib/Push.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Push.php b/lib/Push.php index 67241e0..d6b9b12 100644 --- a/lib/Push.php +++ b/lib/Push.php @@ -201,6 +201,10 @@ class Push { } public function pushDeleteToDevice(string $userId, int $notificationId): void { + if (!$this->config->getSystemValueBool('has_internet_connection', true)) { + return; + } + $user = $this->userManager->get($userId); if (!($user instanceof IUser)) { return; -- cgit v1.2.3