聊天记录

This commit is contained in:
2023-12-05 20:24:36 +08:00
parent 8aa642ecb4
commit 228943fc02
7 changed files with 110 additions and 85 deletions

File diff suppressed because one or more lines are too long

View File

@@ -492,7 +492,7 @@ export default {
if (same) {
return
}
//离线消息体
var msgOffline = {
userId: userId,
@@ -540,15 +540,21 @@ export default {
}
}
//TODO 需要请求接口获取真实的消息时间
/*
chatWindowData.push(msgOffline)
store.dispatch('updateChatById', {
userId: userId,
data: chatWindowData
store.dispatch('updateChatById', {
userId: userId,
data: chatWindowData
})
store.dispatch('updateChatListInfoById', {
userId: userId,
data: msgList
})
})
*/
store.dispatch('tabBarpull')
store.dispatch('updateChatDataState', userId);
});
@@ -1024,9 +1030,9 @@ export default {
const _data = JSON.parse(msg.messageBody)
// try{
// console.log("=======================formatMessage")
// console.log(_data)

View File

@@ -139,9 +139,7 @@ export default {
// console.warn(res)
// })
sdk.getUserConversationList(0).then(res => {
console.warn(res)
})
store.dispatch('queryConversationList')
} else {