Skip to content

Commit

Permalink
Merge pull request #2192 from nextcloud/backport/2189/stable29
Browse files Browse the repository at this point in the history
[stable29] feat(push): Show error when internet connection is disabled in configuration
  • Loading branch information
SystemKeeper authored Feb 13, 2025
2 parents a349838 + 7339a1b commit 2787a82
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 @@ -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('<error>Internet connectivity is disabled in configuration file - no push notifications will be sent</error>');

return;
}

Expand Down

0 comments on commit 2787a82

Please sign in to comment.