class MessageMetadataViewFactory implements MessageViewFactory<MessageMetadataView> {

    @Override
    public Flux<MessageMetadataView> fromMessageIds(List<MessageId> messageIds, MailboxSession session) {
        Flux<MessageResult> messages = Flux.from(messageIdManager.getMessagesReactive(messageIds, FetchGroup.MINIMAL, session));
        return Helpers.toMessageViews(messages, this::fromMessageResults);
    }

    @Inject @VisibleForTesting public  MessageMetadataViewFactory(BlobManager blobManager, MessageIdManager messageIdManager);

}