fix(conversations): 修复会话标识与解决后跳转

This commit is contained in:
Rogee
2026-08-06 11:19:39 +08:00
parent b78f963472
commit 8d002d1dbe
8 changed files with 173 additions and 12 deletions
@@ -0,0 +1,10 @@
export const getAdjacentConversationId = (conversationIds, currentId) => {
const currentIndex = conversationIds.indexOf(currentId);
if (currentIndex === -1) return null;
return (
conversationIds[currentIndex + 1] ??
conversationIds[currentIndex - 1] ??
null
);
};