let msgLists = that.msgList.concat(msgObj);
that.msgList = msgLists.reduce(function (tempArr, item) {
if (tempArr.findIndex((ele) => ele.chatId === item.chatId) === -1) {
tempArr.push(item)
}
return tempArr
}, [])
let msgLists = that.msgList.concat(msgObj);
that.msgList = msgLists.reduce(function (tempArr, item) {
if (tempArr.findIndex((ele) => ele.chatId === item.chatId) === -1) {
tempArr.push(item)
}
return tempArr
}, [])