mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-06-28 10:05:45 +01:00
Skip create remote key copy if duplicate is same attachment.
This commit is contained in:
@@ -2088,6 +2088,10 @@ class AttachmentTable(
|
||||
if (duplicate != null) {
|
||||
val (duplicateAttachment, dataFileInfo) = duplicate
|
||||
|
||||
if (duplicateAttachment.attachmentId == attachmentId) {
|
||||
return
|
||||
}
|
||||
|
||||
if (duplicateAttachment.remoteLocation != null && duplicateAttachment.remoteDigest != null && dataFileInfo != null) {
|
||||
Log.w(TAG, "[createRemoteKeyIfNecessary][$attachmentId] Found duplicate with full remote data. Copying all remote data.")
|
||||
writableDatabase
|
||||
|
||||
Reference in New Issue
Block a user