提交 a77462d7 编写于 作者: DCloud_JSON's avatar DCloud_JSON

更新 修复由3.4.37更新引起的解散群功能出错的问题

上级 2089ffcd
......@@ -429,6 +429,7 @@ async function _createOrUpdateConversation(conversation_id, msgData, chat_source
name: true
})
.get()
console.error('groupInfo------', res.data[0]);
groupInfo = res.data[0]
}
......@@ -736,7 +737,7 @@ async function _processPush({ msgData, isMute, appId,groupInfo }) {
const { nickname, avatar_file } = msgData
let title
let content
if(msgData.group_id){
if(groupInfo){
title = groupInfo.name
content = nickname.slice(0, 20) + '' + (msgData.type == 'text'? msgData.body : '[多媒体]')
}else{
......
......@@ -111,12 +111,12 @@ module.exports = {
groupName:triggerContext.groupInfo.name,
}
}
await uniImCo.sendMsg(msgData,userInfo.uid)
// 临时方案 加一条被软删除的群记录
await db.collection('uni-im-group').add({
...triggerContext.groupInfo,
is_delete:true
})
await uniImCo.sendMsg(msgData,userInfo.uid)
}
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册