mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-28 18:26:19 -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, {
|
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",
|
||||||
|
|
Loading…
Reference in a new issue