fix: update im SDK

feature/im-0611-ch
ch 2 years ago
parent 69abc97570
commit 150f61315e

@ -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 21:56:37 * @LastEditTime: 2022-06-13 22:17:14
* @Description: file content * @Description: file content
*/ */
import { CreateUUID, FormatDate, ToAsyncAwait } from "@/plugins/utils"; import { CreateUUID, FormatDate, ToAsyncAwait } from "@/plugins/utils";
@ -33,7 +33,6 @@ const fromatPotoReq = (traceId, traceType, content) => {
message: res.getMessage(), message: res.getMessage(),
}; };
}; };
class MsbIm { class MsbIm {
defaultOption = { defaultOption = {
ioKey: 'traceId', ioKey: 'traceId',
@ -278,10 +277,10 @@ class MsbIm {
const { content } = result; const { content } = result;
// let newData = []; // let newData = [];
// content.sessionVOS.forEach((item) => { content.sessionVOS.forEach((item) => {
// if (item.lastMessage) { if (item.lastMessage) {
// item.lastMessage.payload = JSON.parse(item.lastMessage.payload || {}); item.lastMessage.payload = JSON.parse(item.lastMessage.payload || {});
// } }
// let historyData = this.sessionData; // let historyData = this.sessionData;
// let hisIndex = historyData.findIndex((i) => i.id === item.id); // let hisIndex = historyData.findIndex((i) => i.id === item.id);
// if (hisIndex >= 0) { // if (hisIndex >= 0) {
@ -292,7 +291,7 @@ class MsbIm {
// item.messageList = []; // item.messageList = [];
// newData = [...newData, item]; // newData = [...newData, item];
// } // }
// }); });
this.setSessionData(content.sessionVOS); this.setSessionData(content.sessionVOS);
return Promise.resolve(result); return Promise.resolve(result);
} }

Loading…
Cancel
Save