mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-27 16:04:50 -06:00
refac
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user