components/app: include server ID in notification tags

This commit is contained in:
Simon Ser 2022-02-11 19:01:27 +01:00
parent db0ef39c6b
commit bb42ff6a07

View file

@ -522,7 +522,7 @@ export default class App extends Component {
let notif = showNotification(title, { let notif = showNotification(title, {
body: stripANSI(text), body: stripANSI(text),
requireInteraction: true, requireInteraction: true,
tag: "msg," + msg.prefix.name + "," + bufName, tag: "msg,server=" + serverID + ",from=" + msg.prefix.name + ",to=" + bufName,
}); });
notif.addEventListener("click", () => { notif.addEventListener("click", () => {
// TODO: scroll to message // TODO: scroll to message
@ -537,7 +537,7 @@ export default class App extends Component {
let notif = new Notification("Invitation to " + channel, { let notif = new Notification("Invitation to " + channel, {
body: msg.prefix.name + " has invited you to " + channel, body: msg.prefix.name + " has invited you to " + channel,
requireInteraction: true, requireInteraction: true,
tag: "invite," + msg.prefix.name + "," + channel, tag: "invite,server=" + serverID + ",from=" + msg.prefix.name + ",channel=" + channel,
actions: [{ actions: [{
action: "accept", action: "accept",
title: "Accept", title: "Accept",