From f4e8ac7f5ca233b5604b5ea0d53e054594ccccf2 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 13 Jul 2020 12:30:51 +0200 Subject: [PATCH] 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 eadaf3c28..958f7fa7b 100644 --- a/lib/Push.php +++ b/lib/Push.php @@ -209,6 +209,10 @@ public function pushToDevice(int $id, INotification $notification, ?OutputInterf } 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;