fix(conversations): 修复会话标识与解决后跳转
This commit is contained in:
@@ -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
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user