Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/notifications.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Push.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Push.php b/lib/Push.php
index f3922bd..d377df8 100644
--- a/lib/Push.php
+++ b/lib/Push.php
@@ -205,6 +205,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;