diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-07-13 14:50:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-13 14:50:55 +0300 |
commit | fed6ddaf937b72670780e54f3e733627e04ff091 (patch) | |
tree | 32366afe4d829ad6be0cd15c4e3d2ab60310be6d | |
parent | 25817e1fa29b49619569929258361a62ef5fd8c0 (diff) | |
parent | a33edba17a4686b77fb7ea538a445793544d9ce3 (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.php | 4 |
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; |