aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2016-06-04 09:56:21 +0200
committerChristian Schneppe <christian@pix-art.de>2016-06-04 09:56:21 +0200
commit398eacc0f022aec869cac003e61ced7215c178fa (patch)
tree69e7d28a0161a3476efc2afd45e83b852c3ca721 /src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java
parent3233ccdb6526895d3796dfe298d5793359cc192a (diff)
add first 4 chars to file names
fixes download of multiple files within the same time becauser prosody doesn't send milliseconds
Diffstat (limited to '')
-rw-r--r--src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java
index 4ec31c915..a3bcbb386 100644
--- a/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java
+++ b/src/main/java/eu/siacs/conversations/http/HttpDownloadConnection.java
@@ -93,7 +93,7 @@ public class HttpDownloadConnection implements Transferable {
} else {
extension = lastPart;
}
- String filename = fileDateFormat.format(new Date(message.getTimeSent()));
+ String filename = fileDateFormat.format(new Date(message.getTimeSent()))+"_"+message.getUuid().substring(0,4);
message.setRelativeFilePath(filename + "." + extension);
this.file = mXmppConnectionService.getFileBackend().getFile(message, false);
String reference = mUrl.getRef();