retrieveAttachment(attachment, input -> IOUtils.copyStream(input, outputStream));
}
- public void retrieveAttachment(
- SignalServiceAttachment attachment, AttachmentHandler consumer
- ) throws IOException {
+ public void retrieveAttachment(SignalServiceAttachment attachment, AttachmentHandler consumer) throws IOException {
if (attachment.isStream()) {
var input = attachment.asStream().getInputStream();
// don't close input stream here, it might be reused later (e.g. with contact sync messages ...)
}
private InputStream retrieveAttachmentAsStream(
- SignalServiceAttachmentPointer pointer, File tmpFile
+ SignalServiceAttachmentPointer pointer,
+ File tmpFile
) throws IOException {
try {
return dependencies.getMessageReceiver()