You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/files_reminders/lib/SetupChecks/NeedNotificationsApp.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,12 +10,14 @@
10
10
namespaceOCA\DAV\SetupChecks;
11
11
12
12
useOCP\App\IAppManager;
13
+
useOCP\IL10N;
13
14
useOCP\SetupCheck\ISetupCheck;
14
15
useOCP\SetupCheck\SetupResult;
15
16
16
17
class NeedNotificationsApp implements ISetupCheck {
17
18
publicfunction__construct(
18
19
privateIAppManager$appManager,
20
+
privateIL10N$l10n,
19
21
) {
20
22
}
21
23
@@ -28,7 +30,7 @@ public function getCategory(): string {
28
30
}
29
31
30
32
publicfunctionrun(): SetupResult {
31
-
if ($this->appManager->isInstalled('notifications')) {
33
+
if ($this->appManager->isEnabledForAnyone('notifications')) {
32
34
return SetupResult::success($this->l10n->t('This files_reminder can work properly.'));
33
35
} else {
34
36
return SetupResult::warning($this->l10n->t('The files_reminder app needs the notification app to work properly. You should either enable notifications or disable files_reminder.'));
0 commit comments