From 190aeb3fef979d6008750b83edeec76204226c0b Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 23 Dec 2024 01:29:59 -0700 Subject: [PATCH] refac --- src/lib/components/channel/Messages/Message.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/channel/Messages/Message.svelte b/src/lib/components/channel/Messages/Message.svelte index 54be0b4ec..8b468ab7b 100644 --- a/src/lib/components/channel/Messages/Message.svelte +++ b/src/lib/components/channel/Messages/Message.svelte @@ -65,7 +65,7 @@ ? 'max-w-full' : 'max-w-5xl'} mx-auto group hover:bg-gray-500/5 transition relative" > - {#if message.user_id === $user.id && !edit} + {#if (message.user_id === $user.id || $user.role === 'admin') && !edit}