mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-15 07:28:30 +00:00
Fix export issue around long-text and quote-long texts.
This commit is contained in:
committed by
jeffrey-signal
parent
ce86b511f0
commit
c18e6e5e67
@@ -1133,7 +1133,7 @@ private fun BackupMessageRecord.toRemoteStandardMessage(exportState: ExportState
|
||||
* you should set it as the value for [StandardMessage.longText].
|
||||
*/
|
||||
private fun BackupMessageRecord.getBodyText(attachments: List<DatabaseAttachment>?): Pair<String, DatabaseAttachment?> {
|
||||
val longTextAttachment = attachments?.firstOrNull { it.contentType == "text/x-signal-plain" }
|
||||
val longTextAttachment = attachments?.firstOrNull { it.contentType == "text/x-signal-plain" && !it.quote }
|
||||
if (longTextAttachment == null) {
|
||||
return this.body.emptyIfNull() to null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user