Merge pull request #41133 from nextcloud/bugfix/noid/dont-duplicate-notification-warning

Don't duplicate notification warning
pull/41136/head
Joas Schilling 7 months ago committed by GitHub
commit e98be0a147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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