We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6358afc commit 68501f3Copy full SHA for 68501f3
src/store.js
@@ -590,9 +590,10 @@ let store = {
590
}
591
592
if (conversationState.currentConversationInfo && conversationState.currentConversationInfo.conversation.equal(conversation)) {
593
+ let isClearConversationMessageHistory = !conversationInfo.lastMessage && !!conversationState.currentConversationInfo.lastMessage;
594
conversationState.currentConversationInfo = conversationInfo;
595
// 清除聊天记录
- if (!conversationInfo.lastMessage) {
596
+ if (isClearConversationMessageHistory) {
597
conversationState.currentConversationMessageList = [];
598
599
0 commit comments