mirror of
https://github.com/open-webui/open-webui
synced 2025-01-31 15:01:00 +00:00
refac
This commit is contained in:
parent
f31e2af349
commit
b4d91b5cb4
@ -154,9 +154,9 @@
|
|||||||
if (type === 'message') {
|
if (type === 'message') {
|
||||||
if ($isLastActiveTab) {
|
if ($isLastActiveTab) {
|
||||||
if ($settings?.notificationEnabled ?? false) {
|
if ($settings?.notificationEnabled ?? false) {
|
||||||
new Notification(`#${event?.channel?.name} | Open WebUI`, {
|
new Notification(`${data?.user?.name} (#${event?.channel?.name}) | Open WebUI`, {
|
||||||
body: data?.content,
|
body: data?.content,
|
||||||
icon: `${WEBUI_BASE_URL}/static/favicon.png`
|
icon: data?.user?.profile_image_url ?? `${WEBUI_BASE_URL}/static/favicon.png`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user