Fix issue where deduped media might not be kept in sync.

fork-5.53.8
Greyson Parrelli 2019-11-04 15:51:25 -05:00
rodzic 02e3f511bd
commit 544511905a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -596,7 +596,7 @@ public class AttachmentDatabase extends Database {
contentValues.put(DATA_RANDOM, dataInfo.random);
contentValues.put(DATA_HASH, dataInfo.hash);
int updateCount = updateAttachmentAndMatchingHashes(database, databaseAttachment.getAttachmentId(), dataInfo.hash, contentValues);
int updateCount = updateAttachmentAndMatchingHashes(database, databaseAttachment.getAttachmentId(), oldDataInfo.hash, contentValues);
Log.i(TAG, "[updateAttachmentData] Updated " + updateCount + " rows.");
}