feat(notif): auto-request notif type (#2956)

This commit is contained in:
TheCatLady
2022-08-21 03:26:19 -07:00
committed by GitHub
parent 301f2bf7ab
commit 6c0fd40877
21 changed files with 125 additions and 29 deletions

View File

@@ -87,7 +87,10 @@ class LunaSeaAgent
): Promise<boolean> {
const settings = this.getSettings();
if (!hasNotificationType(type, settings.types ?? 0)) {
if (
!payload.notifySystem ||
!hasNotificationType(type, settings.types ?? 0)
) {
return true;
}