消息撤回显示
This commit is contained in:
parent
33c3fbea68
commit
9d235c72f8
@ -229,8 +229,11 @@ export struct ConversationViewItem {
|
||||
case V2NIMMessageType.V2NIM_MESSAGE_TYPE_NOTIFICATION:
|
||||
return $r('app.string.notificationMessageType')
|
||||
case V2NIMMessageType.V2NIM_MESSAGE_TYPE_TIPS:
|
||||
return String(item.lastMessage?.text)
|
||||
// return $r('app.string.tipMessageType')
|
||||
if (String(item.lastMessage?.text).includes('撤回')) {
|
||||
return String(item.lastMessage?.text)
|
||||
} else {
|
||||
return $r('app.string.tipMessageType')
|
||||
}
|
||||
case V2NIMMessageType.V2NIM_MESSAGE_TYPE_CALL:
|
||||
if (item.lastMessage?.attachment) {
|
||||
const messageAttachment = item.lastMessage.attachment as V2NIMMessageCallAttachment
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user