diff --git a/src/views/Conversations/Components/ConversationsList.jsx b/src/views/Conversations/Components/ConversationsList.jsx index 15040e7..a83ea03 100644 --- a/src/views/Conversations/Components/ConversationsList.jsx +++ b/src/views/Conversations/Components/ConversationsList.jsx @@ -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 { diff --git a/src/views/Conversations/Conversations.css b/src/views/Conversations/Conversations.css index 6a1adb1..8824ed8 100644 --- a/src/views/Conversations/Conversations.css +++ b/src/views/Conversations/Conversations.css @@ -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; +}