Timothy J. Baek 6 月之前
父节点
当前提交
e35be175fc
共有 1 个文件被更改,包括 2 次插入2 次删除
  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();