SPARK-2207: Display correct name for received file

When a file is received, it could be renamed (see SPARK-2198). The name that's displayed in the confirmation text needs to be modified accordingly.
This commit is contained in:
Guus der Kinderen
2020-11-19 14:34:52 +01:00
parent 8a35d80fa8
commit 7f800b00a0

View File

@ -498,7 +498,7 @@ public class ReceiveFileTransfer extends JPanel {
transferMessage = Res.getString("message.transfer.cancelled");
saveEventToHistory(Res.getString("message.file.transfer.history.receive.canceled", fileName, nickname));
} else if (transfer.getAmountWritten() >= request.getFileSize()) {
transferMessage = Res.getString("message.transfer.complete", transfer.getFileName());
transferMessage = Res.getString("message.transfer.complete", downloadedFile.getName()); // TODO this overwrites the message that was set by transferDone
saveEventToHistory(Res.getString("message.file.transfer.history.receive.success", fileName, nickname));
}