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:55 +0300
committerGitHub <noreply@github.com>2020-07-13 14:50:55 +0300
commitfed6ddaf937b72670780e54f3e733627e04ff091 (patch)
tree32366afe4d829ad6be0cd15c4e3d2ab60310be6d
parent25817e1fa29b49619569929258361a62ef5fd8c0 (diff)
parenta33edba17a4686b77fb7ea538a445793544d9ce3 (diff)
Merge pull request #698 from nextcloud/backport/693/stable18v18.0.7
[stable18] 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 152a3b8..b2114c8 100644
--- a/lib/Push.php
+++ b/lib/Push.php
@@ -139,6 +139,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;