协议更新
This commit is contained in:
@@ -132,7 +132,7 @@ export class GirlChatData extends BaseData {
|
|||||||
const existingMsgIds = new Set(this.chatRecordIds);
|
const existingMsgIds = new Set(this.chatRecordIds);
|
||||||
|
|
||||||
// 过滤掉已经存在的消息(通过 msgId)
|
// 过滤掉已经存在的消息(通过 msgId)
|
||||||
const newChatRecords = allData.filter(msg => !existingMsgIds.has(msg.msgId));
|
const newChatRecords = allData.filter(msg => !existingMsgIds.has(Number(msg.msgId)));
|
||||||
|
|
||||||
// 将新的聊天记录添加到 Map 中
|
// 将新的聊天记录添加到 Map 中
|
||||||
newChatRecords.forEach(msg => {
|
newChatRecords.forEach(msg => {
|
||||||
|
|||||||
Reference in New Issue
Block a user