This commit is contained in:
Timothy Jaeryang Baek
2025-11-27 07:39:00 -05:00
parent f1a7de94ba
commit d5d0e72590
2 changed files with 6 additions and 4 deletions
+4 -2
View File
@@ -511,9 +511,11 @@
}
if (type === 'message') {
const title = `${data?.user?.name}${event?.channel?.type !== 'dm' ? ` (#${event?.channel?.name})` : ''}`;
if ($isLastActiveTab) {
if ($settings?.notificationEnabled ?? false) {
new Notification(`${data?.user?.name} (#${event?.channel?.name}) • Open WebUI`, {
new Notification(`${title} • Open WebUI`, {
body: data?.content,
icon: `${WEBUI_API_BASE_URL}/users/${data?.user?.id}/profile/image`
});
@@ -526,7 +528,7 @@
goto(`/channels/${event.channel_id}`);
},
content: data?.content,
title: `#${event?.channel?.name}`
title: `${title}`
},
duration: 15000,
unstyled: true