eventBus.post(new GenericMessage("d"));
Download download = openDownloads.stream()
- .filter(it -> it.filename().equals(dccSendReceived.filename()))
+ .filter(it -> Objects.equals(it.filename(), dccSendReceived.filename()))
.findFirst()
.orElse(openDownloads.iterator().next());
eventBus.post(new GenericMessage("e"));
- eventBus.post(new GenericMessage(format("Downloading %s from %s as %s.", dccSendReceived.filename(), dccSendReceived.source(), download.filename())));
+ eventBus.post(new GenericMessage(format("Downloading %s from %s as %s.", dccSendReceived.filename(), dccSendReceived.source(), download.pack().name())));
/* check if the file already exists. */
File outputFile = new File(temporaryDirectory, dccSendReceived.filename());