feature/im-0602-ch
ch 3 years ago
parent ecd5c60430
commit 653bbf90f7

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-05-18 14:54:47 * @Date: 2022-05-18 14:54:47
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-06-13 20:56:46 * @LastEditTime: 2022-06-13 21:36:22
* @Description: file content * @Description: file content
*/ */
import { CreateUUID, FormatDate, ToAsyncAwait } from "@/common/utils"; import { CreateUUID, FormatDate, ToAsyncAwait } from "@/common/utils";
@ -280,13 +280,12 @@ class MsbIm {
if (hisIndex >= 0) { if (hisIndex >= 0) {
historyData[hisIndex].lastMessage = item.lastMessage; historyData[hisIndex].lastMessage = item.lastMessage;
historyData[hisIndex].unreadCount++; historyData[hisIndex].unreadCount++;
newData.push(historyData); newData.push(historyData[hisIndex]);
} else { } else {
item.messageList = []; item.messageList = [];
newData = [...newData, item]; newData = [...newData, item];
} }
}); });
this.setSessionData(newData); this.setSessionData(newData);
return Promise.resolve(result); return Promise.resolve(result);
} }

Loading…
Cancel
Save