diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-07-13 14:50:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-13 14:50:44 +0300 |
commit | 6ec2fdde99e5341535e20acbff25b48e280813f2 (patch) | |
tree | 7d3d584340f2bbaf57c0eb263779fee0191d063e | |
parent | 70bbfeba83daae7eef64b6446e83c2f5992315e1 (diff) | |
parent | c8236993f4bf3ae6369c0a436fc0b61e5f53b678 (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.php | 4 |
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; |