Timothy J. Baek 6 tháng trước cách đây
mục cha
commit
e35be175fc
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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();