Skip to content

Commit

Permalink
Merge pull request #2193 from nextcloud/backport/2189/stable30
Browse files Browse the repository at this point in the history
[stable30] feat(push): Show error when internet connection is disabled in configuration
  • Loading branch information
SystemKeeper authored Feb 13, 2025
2 parents 5c56c25 + ba17c44 commit da54e8b
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 da54e8b

Please sign in to comment.