]> nmode's Git Repositories - signal-cli/blobdiff - lib/src/main/java/org/asamk/signal/manager/helper/SyncHelper.java
Refactor attachment upload helpers
[signal-cli] / lib / src / main / java / org / asamk / signal / manager / helper / SyncHelper.java
index 035e57706757282416500ac29a7d721165fab22b..4e77d738bcb3890a7627649e39cadbbf09dc7683 100644 (file)
@@ -302,7 +302,7 @@ public class SyncHelper {
             return Optional.empty();
         }
 
-        return Optional.of(AttachmentUtils.createAttachment(streamDetails, Optional.empty()));
+        return Optional.of(AttachmentUtils.createAttachmentStream(streamDetails, Optional.empty()));
     }
 
     private void downloadContactAvatar(SignalServiceAttachment avatar, RecipientAddress address) {