Skip to content

Commit

Permalink
feat(push): Show error when internet connection is disabled in config…
Browse files Browse the repository at this point in the history
…uration

Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
  • Loading branch information
SystemKeeper authored and backportbot[bot] committed Feb 13, 2025
1 parent 5c56c25 commit ba17c44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Push.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,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('<error>Internet connectivity is disabled in configuration file - no push notifications will be sent</error>');

return;
}

Expand Down

0 comments on commit ba17c44

Please sign in to comment.