From d9d5853f73aa8060c9ed768c326f00d691847e3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BC=96=E7=A0=81=E5=B7=A5=E7=A8=8B=E5=B8=88?= Date: Thu, 20 Aug 2026 04:18:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(pc-client):=20=E4=BC=9A=E8=AF=9D=E7=BD=AE?= =?UTF-8?q?=E9=A1=B6=E6=94=B9=E7=94=A8=20SDK=20setConversation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @openim/electron-client-sdk 无 pinConversation,右键置顶会 TS2551 且运行时 TypeError。改走已有的 setConversation,删除路径不动。 Co-authored-by: Cursor Co-authored-by: multica-agent --- pc-client/src/pages/chat/ConversationSider/ConversationItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pc-client/src/pages/chat/ConversationSider/ConversationItem.tsx b/pc-client/src/pages/chat/ConversationSider/ConversationItem.tsx index 3e2a07b..5c2e67c 100644 --- a/pc-client/src/pages/chat/ConversationSider/ConversationItem.tsx +++ b/pc-client/src/pages/chat/ConversationSider/ConversationItem.tsx @@ -55,7 +55,7 @@ const ConversationItem = ({ isActive, conversation }: IConversationProps) => { const onMenuClick = async ({ key }: { key: string }) => { try { if (key === "pin") { - await IMSDK.pinConversation({ + await IMSDK.setConversation({ conversationID: conversation.conversationID, isPinned: !conversation.isPinned, });