Use File() correctly

This commit is contained in:
AsamK 2015-12-30 17:54:48 +01:00
parent 3d56067272
commit fb36613402

View file

@ -535,7 +535,7 @@ class Manager implements TextSecure {
}
public File getAttachmentFile(long attachmentId) {
return new File(attachmentsPath + "/" + attachmentId);
return new File(attachmentsPath, attachmentId + "");
}
private File retrieveAttachment(TextSecureAttachmentPointer pointer) throws IOException, InvalidMessageException {