Timothy J. Baek hai 6 meses
pai
achega
e35be175fc
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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();