mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
web/notification: fix badge url and add silent flag
This commit is contained in:
parent
0ebfc15ad7
commit
af05e8e86f
1 changed files with 2 additions and 1 deletions
|
@ -338,9 +338,10 @@ export class StateStore {
|
||||||
const notif = new Notification(title, {
|
const notif = new Notification(title, {
|
||||||
body,
|
body,
|
||||||
icon,
|
icon,
|
||||||
badge: "/gomuks.png",
|
badge: "gomuks.png",
|
||||||
// timestamp: evt.timestamp,
|
// timestamp: evt.timestamp,
|
||||||
// image: ...,
|
// image: ...,
|
||||||
|
silent: !sound,
|
||||||
tag: rowid.toString(),
|
tag: rowid.toString(),
|
||||||
})
|
})
|
||||||
room.openNotifications.set(rowid, notif)
|
room.openNotifications.set(rowid, notif)
|
||||||
|
|
Loading…
Add table
Reference in a new issue