From 176a7fc98642ead85aa743bd6a3f1ae32bad5798 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 7 May 2025 12:52:55 +0400 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index d578f3d63..5d11ce940 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -440,8 +440,10 @@ } } - loading = false; - await tick(); + if (!chatIdProp) { + loading = false; + await tick(); + } showControls.subscribe(async (value) => { if (controlPane && !$mobile) {