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:51:09 +0300
committerGitHub <noreply@github.com>2020-07-13 14:51:09 +0300
commit8d58ea2c622d5074c758435267e05411bfcee6b6 (patch)
tree981b1293331b62d1d7a4243367255ccb34874cac
parent03f6ab2b060978fb9fab14208aa57aa15dd7a04c (diff)
parent25a72f23dc10844838a918c7a6b39dfb63dae777 (diff)
Merge pull request #699 from nextcloud/backport/693/stable17v17.0.8
[stable17] 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 c804b6d..67f37c1 100644
--- a/lib/Push.php
+++ b/lib/Push.php
@@ -175,6 +175,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;