Skip to content

Commit

Permalink
Don't duplicate notification warning
Browse files Browse the repository at this point in the history
Ref nextcloud/notifications#1699

Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Oct 26, 2023
1 parent 33c1aaf commit db8e57a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/settings/lib/Controller/CheckSetupController.php
Expand Up @@ -190,6 +190,11 @@ public function setupCheckManager(): DataResponse {
* @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();
}

Expand Down

0 comments on commit db8e57a

Please sign in to comment.