From 5cca378cc8ac2c60381a0a96d99c2e139c46bf5e Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 23 Dec 2024 01:22:04 -0700 Subject: [PATCH] refac --- src/lib/components/channel/Messages/Message.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/components/channel/Messages/Message.svelte b/src/lib/components/channel/Messages/Message.svelte index e7793c472..c7af1699e 100644 --- a/src/lib/components/channel/Messages/Message.svelte +++ b/src/lib/components/channel/Messages/Message.svelte @@ -11,7 +11,7 @@ import { getContext } from 'svelte'; const i18n = getContext>('i18n'); - import { settings } from '$lib/stores'; + import { settings, user } from '$lib/stores'; import { WEBUI_BASE_URL } from '$lib/constants'; @@ -65,7 +65,7 @@ ? 'max-w-full' : 'max-w-5xl'} mx-auto group hover:bg-gray-500/5 transition relative" > - {#if !edit} + {#if message.user_id === $user.id && !edit}