完善分享功能 console.log(item, '==2222222=')
This commit is contained in:
@@ -365,6 +365,7 @@
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
/** 红包文案 */
|
||||
const redEnvelopeText = (item: IConversationModel) => {
|
||||
const payload = JSON.parse(item.lastMessage?.payload?.data)
|
||||
@@ -379,12 +380,22 @@
|
||||
|
||||
/** 是否最开始创建群聊 */
|
||||
const isFirstCreateGroup = (item: IConversationModel) => {
|
||||
// 打印
|
||||
if (item.type === 'GROUP' && item?.lastMessage?.payload?.data) {
|
||||
const data = JSON.parse(item?.lastMessage?.payload?.data)
|
||||
return data.content === 'Create Group'
|
||||
? `${item.getLastMessage('text')?.split(':')[0]}:创建群聊`
|
||||
: ''
|
||||
}
|
||||
if (item?.lastMessage?.payload?.data) {
|
||||
const data = JSON.parse(item?.lastMessage?.payload?.data)
|
||||
if (data.businessID === CHAT_MSG_CUSTOM_TYPE.GOODS) {
|
||||
console.log(item, '==2222222=')
|
||||
|
||||
return `自定义数据--`
|
||||
}
|
||||
return ''
|
||||
}
|
||||
return ''
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user