Fix validation error with long text attachments.

This commit is contained in:
Greyson Parrelli
2025-02-21 12:05:20 -05:00
parent 6975afcff0
commit 46e303ffca

View File

@@ -360,7 +360,7 @@ class ChatItemArchiveExporter(
else -> {
val attachments = extraData.attachmentsById[record.id]
if (attachments?.isNotEmpty() == true && attachments.all { it.contentType == MediaUtil.LONG_TEXT } && record.body.isNullOrEmpty()) {
if (attachments?.isNotEmpty() == true && attachments.any { it.contentType == MediaUtil.LONG_TEXT } && record.body.isNullOrBlank()) {
Log.w(TAG, ExportSkips.invalidLongTextChatItem(record.dateSent))
continue
}