mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Ignore invalid long text attachment pointers.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user