消息撤回显示

This commit is contained in:
xiaoxiao 2025-08-11 13:48:52 +08:00
parent 33c3fbea68
commit 9d235c72f8

View File

@ -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