Timothy J. Baek 6 months ago
parent
commit
e35be175fc
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lib/components/layout/Sidebar.svelte

+ 2 - 2
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();