Don't duplicate notification warning

Ref https://github.com/nextcloud/notifications/pull/1699

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/41133/head
Joas Schilling 3 years ago
parent 33c1aafc2e
commit db8e57a727
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
  1. 5
      apps/settings/lib/Controller/CheckSetupController.php

@ -190,6 +190,11 @@ class CheckSetupController extends Controller {
* @return bool
*/
private function isFairUseOfFreePushService(): bool {
$rateLimitReached = (int) $this->config->getAppValue('notifications', 'rate_limit_reached', '0');
if ($rateLimitReached >= (time() - 7 * 24 * 3600)) {
// Notifications app is showing a message already
return true;
}
return $this->manager->isFairUseOfFreePushService();
}

Loading…
Cancel
Save