From 7339a1baa5ce56c9e5ec92fc551bd1edc6f96cee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Thu, 13 Feb 2025 16:37:13 +0100 Subject: [PATCH] feat(push): Show error when internet connection is disabled in configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- lib/Push.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Push.php b/lib/Push.php index 32691a367..e4d3cb2d4 100644 --- a/lib/Push.php +++ b/lib/Push.php @@ -260,6 +260,8 @@ public function filterDeviceList(array $devices, string $app): array { public function pushToDevice(int $id, INotification $notification, ?OutputInterface $output = null): void { if (!$this->config->getSystemValueBool('has_internet_connection', true)) { + $this->printInfo('Internet connectivity is disabled in configuration file - no push notifications will be sent'); + return; }