From b4d91b5cb4354428fee50b971da400e20eae5a9a Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 4 Jan 2025 02:34:12 -0800 Subject: [PATCH] refac --- src/routes/+layout.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index da6756ce1..f8391412f 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -154,9 +154,9 @@ if (type === 'message') { if ($isLastActiveTab) { if ($settings?.notificationEnabled ?? false) { - new Notification(`#${event?.channel?.name} | Open WebUI`, { + new Notification(`${data?.user?.name} (#${event?.channel?.name}) | Open WebUI`, { body: data?.content, - icon: `${WEBUI_BASE_URL}/static/favicon.png` + icon: data?.user?.profile_image_url ?? `${WEBUI_BASE_URL}/static/favicon.png` }); } }