File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
lib/src/main/java/org/asamk/signal/manager/internal Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -764,11 +764,12 @@ private void applyMessage(
764
764
messageBuilder .withBody (message .messageText ());
765
765
}
766
766
if (!message .attachments ().isEmpty ()) {
767
+ final var uploadedAttachments = context .getAttachmentHelper ().uploadAttachments (message .attachments ());
767
768
if (!additionalAttachments .isEmpty ()) {
768
- additionalAttachments .addAll (context . getAttachmentHelper (). uploadAttachments ( message . attachments ()) );
769
+ additionalAttachments .addAll (uploadedAttachments );
769
770
messageBuilder .withAttachments (additionalAttachments );
770
771
} else {
771
- messageBuilder .withAttachments (context . getAttachmentHelper (). uploadAttachments ( message . attachments ()) );
772
+ messageBuilder .withAttachments (uploadedAttachments );
772
773
}
773
774
}
774
775
if (!message .mentions ().isEmpty ()) {
You can’t perform that action at this time.
0 commit comments