dev/chat
Lei OT 2 years ago
parent 484e8122d4
commit 01f271fb38

@ -91,8 +91,8 @@ const Conversations = () => {
if (!isEmpty(data)) {
addToConversationList(data);
}
// const ifCurrent = data.findIndex((item) => item.sn === currentConversation.sn);
const ifCurrent = conversationsList.findIndex((item) => item.coli_sn === Number(colisn));
let ifCurrent = data.findIndex((item) => item.sn === currentConversation.sn);
ifCurrent = ifCurrent !== -1 ? ifCurrent : conversationsList.findIndex((item) => item.coli_sn === Number(colisn));
if (ifCurrent !== -1) {
switchConversation(conversationsList[ifCurrent === -1 ? 0 : ifCurrent]);
} else {

@ -18,3 +18,13 @@
.chatwindow-wrapper .rce-mbox-text:after{
content: none;
}
.chatwindow-wrapper .rce-mbox-left-notch {
width: 10px;
height: 10px;
left: -9px;
}
.chatwindow-wrapper .rce-mbox-right-notch {
width: 10px;
height: 10px;
right: -9px;
}

Loading…
Cancel
Save