Skip to content

Commit 68501f3

Browse files
committed
修复邀请新群成员入群时,会话界面的消息列表,可能被清空,然后又重新拉取
1 parent 6358afc commit 68501f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/store.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -590,9 +590,10 @@ let store = {
590590
}
591591

592592
if (conversationState.currentConversationInfo && conversationState.currentConversationInfo.conversation.equal(conversation)) {
593+
let isClearConversationMessageHistory = !conversationInfo.lastMessage && !!conversationState.currentConversationInfo.lastMessage;
593594
conversationState.currentConversationInfo = conversationInfo;
594595
// 清除聊天记录
595-
if (!conversationInfo.lastMessage) {
596+
if (isClearConversationMessageHistory) {
596597
conversationState.currentConversationMessageList = [];
597598
}
598599
}

0 commit comments

Comments
 (0)