mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Checksums: Use SHA1 like in >=2.2
This commit is contained in:
parent
9aed8dbce8
commit
46e4ec3183
@ -222,8 +222,9 @@ void PropagateUploadFileQNAM::slotComputeContentChecksum()
|
||||
QByteArray contentChecksumType;
|
||||
// We currently only do content checksums for the particular .eml case
|
||||
// This should be done more generally in the future!
|
||||
if (filePath.endsWith(QLatin1String(".eml"), Qt::CaseInsensitive)) {
|
||||
contentChecksumType = "MD5";
|
||||
if (filePath.endsWith(QLatin1String(".eml"), Qt::CaseInsensitive)
|
||||
|| filePath.endsWith(QLatin1String(".msg"), Qt::CaseInsensitive)) {
|
||||
contentChecksumType = "SHA1";
|
||||
}
|
||||
|
||||
// Maybe the discovery already computed the checksum?
|
||||
|
||||
Loading…
Reference in New Issue
Block a user