android, desktop: displaying deleted message with file in chat list (#5329)

This commit is contained in:
Stanislav Dmitrenko
2024-12-06 01:10:36 +07:00
committed by GitHub
parent 5f66c29dbd
commit de76e271a8

View File

@@ -347,7 +347,7 @@ fun ChatPreviewView(
chatItemContentPreview(chat, ci)
}
if (mc !is MsgContent.MCVoice || !showContentPreview || mc.text.isNotEmpty() || chatModelDraftChatId == chat.id) {
Box(Modifier.offset(x = if (mc is MsgContent.MCFile) -15.sp.toDp() else 0.dp)) {
Box(Modifier.offset(x = if (mc is MsgContent.MCFile && ci.meta.itemDeleted == null) -15.sp.toDp() else 0.dp)) {
chatPreviewText()
}
}