mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-21 10:17:56 +00:00
Fix export issue with bad edit messages from during development.
This commit is contained in:
@@ -300,7 +300,11 @@ class ChatItemArchiveExporter(
|
||||
if (record.latestRevisionId == null) {
|
||||
val previousEdits = revisionMap.remove(record.id)
|
||||
if (previousEdits != null) {
|
||||
builder.revisions = previousEdits
|
||||
if (builder.standardMessage != null) {
|
||||
builder.revisions = previousEdits
|
||||
} else {
|
||||
Log.w(TAG, "[${record.dateSent}] Attempted to set revisions on a non-standard message! Ignoring.")
|
||||
}
|
||||
}
|
||||
buffer += builder.build()
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user