From 0cdcc2deb6d81ce9b4efbc97a67891624c0e8b34 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 2 Apr 2024 06:17:51 -0700 Subject: [PATCH] refac: dedicated shared chat page --- src/routes/{(app) => }/s/[id]/+page.svelte | 33 +++------------------- 1 file changed, 4 insertions(+), 29 deletions(-) rename src/routes/{(app) => }/s/[id]/+page.svelte (82%) diff --git a/src/routes/(app)/s/[id]/+page.svelte b/src/routes/s/[id]/+page.svelte similarity index 82% rename from src/routes/(app)/s/[id]/+page.svelte rename to src/routes/s/[id]/+page.svelte index 2b5226205..6a6d10964 100644 --- a/src/routes/(app)/s/[id]/+page.svelte +++ b/src/routes/s/[id]/+page.svelte @@ -121,18 +121,6 @@ } } }; - - const scrollToBottom = () => { - if (messagesContainerElement) { - messagesContainerElement.scrollTop = messagesContainerElement.scrollHeight; - } - }; - - onMount(async () => { - if (!($settings.saveChatHistory ?? true)) { - await goto('/'); - } - }); @@ -144,26 +132,13 @@ {#if loaded} -
- { - goto('/'); - }} - /> +