From bb42ff6a079fa18476a9347f41bc7bbf3ded2f5b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 11 Feb 2022 19:01:27 +0100 Subject: [PATCH] components/app: include server ID in notification tags --- components/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/app.js b/components/app.js index 12bec0b..d7120a8 100644 --- a/components/app.js +++ b/components/app.js @@ -522,7 +522,7 @@ export default class App extends Component { let notif = showNotification(title, { body: stripANSI(text), requireInteraction: true, - tag: "msg," + msg.prefix.name + "," + bufName, + tag: "msg,server=" + serverID + ",from=" + msg.prefix.name + ",to=" + bufName, }); notif.addEventListener("click", () => { // TODO: scroll to message @@ -537,7 +537,7 @@ export default class App extends Component { let notif = new Notification("Invitation to " + channel, { body: msg.prefix.name + " has invited you to " + channel, requireInteraction: true, - tag: "invite," + msg.prefix.name + "," + channel, + tag: "invite,server=" + serverID + ",from=" + msg.prefix.name + ",channel=" + channel, actions: [{ action: "accept", title: "Accept",