fix(pc-client): 会话置顶改用 SDK setConversation

@openim/electron-client-sdk 无 pinConversation,右键置顶会 TS2551 且运行时 TypeError。改走已有的 setConversation,删除路径不动。

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
编码工程师
2026-08-20 04:18:42 +08:00
co-authored by Cursor multica-agent
parent a4d21ef367
commit d9d5853f73
@@ -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,
});