Skip to content

Commit

Permalink
show username in the title of desktop notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
LevitatingBusinessMan committed Nov 30, 2024
1 parent 12ea60a commit 165f1d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/pages/client/ClientNonUIFeatures.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ function MessageNotifications() {
eventId: string;
message: string;
}) => {
const noti = new window.Notification(roomName, {
const noti = new window.Notification(`${username} in ${roomName}`, {
icon: roomAvatar,
badge: roomAvatar,
body: `From ${username}: ${message}`,
body: message,
silent: true,
});

Expand Down

0 comments on commit 165f1d2

Please sign in to comment.