]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Checksums: Use SHA1 like in >=2.2
authorMarkus Goetz <markus@woboq.com>
Fri, 20 May 2016 14:31:47 +0000 (16:31 +0200)
committerMarkus Goetz <markus@woboq.com>
Fri, 20 May 2016 14:31:47 +0000 (16:31 +0200)
src/libsync/propagateupload.cpp

index 92439b6a46d2901890e1a5d10f24bbde7c23f2a7..6ec25ab38eaa34bc1df54acf641f3f4082e4533c 100644 (file)
@@ -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?