]> nmode's Git Repositories - signal-cli/blobdiff - lib/src/main/java/org/asamk/signal/manager/AttachmentStore.java
Refactor receive api
[signal-cli] / lib / src / main / java / org / asamk / signal / manager / AttachmentStore.java
index f983a90b76df7f2905d6ead62836eaff3bf1d900..9ba57937400311e0cae09867ea58bbef9b78185e 100644 (file)
@@ -25,7 +25,7 @@ public class AttachmentStore {
     public void storeAttachment(
             final SignalServiceAttachmentRemoteId attachmentId, final AttachmentStorer storer
     ) throws IOException {
-        storeAttachment(getAttachmentFile(attachmentId), storer);
+        storeAttachment(getAttachmentFile(attachmentId.toString()), storer);
     }
 
     private void storeAttachment(final File attachmentFile, final AttachmentStorer storer) throws IOException {
@@ -39,8 +39,8 @@ public class AttachmentStore {
         return new File(attachmentsPath, attachmentId.toString() + ".preview");
     }
 
-    public File getAttachmentFile(SignalServiceAttachmentRemoteId attachmentId) {
-        return new File(attachmentsPath, attachmentId.toString());
+    public File getAttachmentFile(String attachmentId) {
+        return new File(attachmentsPath, attachmentId);
     }
 
     private void createAttachmentsDir() throws IOException {