From af05e8e86f85cae8100ea7478bdf9b809b437087 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 15 Dec 2024 19:56:17 +0200 Subject: [PATCH] web/notification: fix badge url and add silent flag --- web/src/api/statestore/main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/src/api/statestore/main.ts b/web/src/api/statestore/main.ts index 548f3ca..8ce87f2 100644 --- a/web/src/api/statestore/main.ts +++ b/web/src/api/statestore/main.ts @@ -338,9 +338,10 @@ export class StateStore { const notif = new Notification(title, { body, icon, - badge: "/gomuks.png", + badge: "gomuks.png", // timestamp: evt.timestamp, // image: ..., + silent: !sound, tag: rowid.toString(), }) room.openNotifications.set(rowid, notif)