diff --git a/lib/src/main/java/org/asamk/signal/manager/internal/ManagerImpl.java b/lib/src/main/java/org/asamk/signal/manager/internal/ManagerImpl.java index 0dc7f5ed..4e6bee90 100644 --- a/lib/src/main/java/org/asamk/signal/manager/internal/ManagerImpl.java +++ b/lib/src/main/java/org/asamk/signal/manager/internal/ManagerImpl.java @@ -764,11 +764,12 @@ public class ManagerImpl implements Manager { messageBuilder.withBody(message.messageText()); } if (!message.attachments().isEmpty()) { + final var uploadedAttachments = context.getAttachmentHelper().uploadAttachments(message.attachments()); if (!additionalAttachments.isEmpty()) { - additionalAttachments.addAll(context.getAttachmentHelper().uploadAttachments(message.attachments())); + additionalAttachments.addAll(uploadedAttachments); messageBuilder.withAttachments(additionalAttachments); } else { - messageBuilder.withAttachments(context.getAttachmentHelper().uploadAttachments(message.attachments())); + messageBuilder.withAttachments(uploadedAttachments); } } if (!message.mentions().isEmpty()) {