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:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2020-07-13 14:50:44 +0300
committerGitHub <noreply@github.com>2020-07-13 14:50:44 +0300
commit6ec2fdde99e5341535e20acbff25b48e280813f2 (patch)
tree7d3d584340f2bbaf57c0eb263779fee0191d063e
parent70bbfeba83daae7eef64b6446e83c2f5992315e1 (diff)
parentc8236993f4bf3ae6369c0a436fc0b61e5f53b678 (diff)
Merge pull request #697 from nextcloud/backport/693/stable19v19.0.1
[stable19] Also check for internet on delete push
-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;