mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 20:48:43 +00:00
Fix validation error with long text attachments.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user