import org.whispersystems.signalservice.api.messages.SignalServiceAttachmentPointer;
import org.whispersystems.signalservice.api.messages.SignalServiceAttachmentStream;
import org.whispersystems.signalservice.api.push.exceptions.MissingConfigurationException;
+import org.whispersystems.signalservice.api.util.StreamDetails;
import java.io.File;
import java.io.IOException;
return attachmentStore.getAttachmentFile(pointer);
}
+ public StreamDetails retrieveAttachment(final String id) throws IOException {
+ return attachmentStore.retrieveAttachment(id);
+ }
+
+
public List<SignalServiceAttachment> uploadAttachments(final List<String> attachments) throws AttachmentInvalidException, IOException {
var attachmentStreams = AttachmentUtils.createAttachmentStreams(attachments);