Silent: false for notifications (#5284)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2024-04-10 16:37:19 +05:00 committed by GitHub
parent 50d5c3bad9
commit ed192130f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View File

@ -576,6 +576,7 @@ export function createModel (builder: Builder): void {
group: notification.ids.NotificationGroup,
providers: {
[notification.providers.EmailNotification]: true,
[notification.providers.BrowserNotification]: true,
[notification.providers.PlatformNotification]: true
},
templates: {

View File

@ -119,6 +119,7 @@ function defineNotifications (builder: Builder): void {
},
providers: {
[notification.providers.PlatformNotification]: true,
[notification.providers.BrowserNotification]: true,
[notification.providers.EmailNotification]: true
}
},

View File

@ -44,7 +44,8 @@
for (const value of notifications) {
const req: NotificationOptions = {
body: value.body,
tag: value._id
tag: value._id,
silent: false
}
const notification = new Notification(value.title, req)
if (value.onClickLocation !== undefined) {