mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
components/app: include server ID in notification tags
This commit is contained in:
parent
db0ef39c6b
commit
bb42ff6a07
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue