From e35be175fc241d6a426331e7b68d806fd348f776 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 26 Oct 2024 22:05:19 -0700 Subject: [PATCH] fix --- src/lib/components/layout/Sidebar.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index d3502b056..03fe4025d 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -595,7 +595,7 @@ } if (!chat.pinned) { - const res = await toggleChatPinnedStatusById(localStorage.token, id); + const res = await toggleChatPinnedStatusById(localStorage.token, chat.id); } initChatList(); @@ -681,7 +681,7 @@ } if (chat.pinned) { - const res = await toggleChatPinnedStatusById(localStorage.token, id); + const res = await toggleChatPinnedStatusById(localStorage.token, chat, id); } initChatList();