修复合并对话消息导致的右键菜单报错问题

This commit is contained in:
CrescentLeaf
2026-01-09 22:46:14 +08:00
parent 922791a0f5
commit 687088a284
4 changed files with 11 additions and 6 deletions

View File

@@ -84,7 +84,7 @@ export default function DialogContextWrapper({ children, useRef }: { children: R
setCurrentSelectedChatId('')
}
}}>
{<ChatFragmentDialog chatId={currentSelectedChatId} useRef={chatFragmentDialogRef} />}
<ChatFragmentDialog chatId={currentSelectedChatId} useRef={chatFragmentDialogRef} />
<UserOrChatInfoDialog chat={userOrChatInfoDialogState[userOrChatInfoDialogState.length - 1] || lastUserOrChatInfoDialogStateRef.current} useRef={userOrChatInfoDialogRef} />
<EditMyProfileDialog useRef={editMyProfileDialogRef} />
<AddFavourtieChatDialog useRef={addFavouriteChatDialogRef} />