fix: 在线聊天: 刷新页面

dev/chat
Lei OT 2 years ago
parent 1efb5ca7ed
commit ae2b96c3ff

@ -71,6 +71,10 @@ const Conversations = ({ mobile }) => {
} else {
// findCurrentIndex = conversationsList.findIndex((item) => item.coli_sn === Number(colisn)); // data.findIndex((item) => item.sn === currentConversation.sn);
}
} else if (isEmpty(whatsappID)) {
//
findCurrentIndex = conversationsList.findIndex((item) => `${item.coli_sn}` === `${colisn}`);
findCurrent = conversationsList[findCurrentIndex];
}
if (findCurrentIndex >= 0) {
setCurrentConversation(findCurrent);

Loading…
Cancel
Save