Ignore invalid long text attachment pointers.

This commit is contained in:
Greyson Parrelli
2025-09-05 14:31:09 -04:00
parent 0dac6344ab
commit 9058f7ed55

View File

@@ -1048,7 +1048,7 @@ private fun BackupMessageRecord.getBodyText(attachments: List<DatabaseAttachment
PartAuthority.getAttachmentStream(AppDependencies.application, longTextAttachment.uri!!)?.readFully()?.toString(Charsets.UTF_8)
} catch (e: IOException) {
Log.w(TAG, ExportOddities.unreadableLongTextAttachment(this.dateSent))
return this.body.emptyIfNull() to longTextAttachment
return this.body.emptyIfNull() to null
}
if (longText == null) {