From 1b62df33d25f8fbddd69e6b79bfc8b49d33449ac Mon Sep 17 00:00:00 2001 From: lgmarchi Date: Wed, 11 Sep 2024 16:21:13 -0300 Subject: [PATCH 1/2] Fix chatbar messages to persist through different conversations --- .../components/messaging/ChatPreview.svelte | 7 ++- src/lib/elements/Input/Input.svelte | 59 ++++++++++--------- src/lib/layouts/Chatbar.svelte | 32 ++++++++-- src/lib/layouts/Sidebar.svelte | 2 +- src/routes/chat/+page.svelte | 3 +- 5 files changed, 67 insertions(+), 36 deletions(-) diff --git a/src/lib/components/messaging/ChatPreview.svelte b/src/lib/components/messaging/ChatPreview.svelte index 649966222..dae83b57d 100644 --- a/src/lib/components/messaging/ChatPreview.svelte +++ b/src/lib/components/messaging/ChatPreview.svelte @@ -8,6 +8,7 @@ import ProfilePictureMany from "../profile/ProfilePictureMany.svelte" import { Store } from "$lib/state/Store" import { goto } from "$app/navigation" + import { get } from "svelte/store" export let chat: Chat export let cta: boolean = false @@ -40,7 +41,7 @@