Commit bff425a0 by Facundo Javier Gelatti

Move addFileToPayload to be in a better context when reading the code

1 parent caf9bede
......@@ -225,11 +225,6 @@ public class EmbedUi {
new Thread(runnable).start();
}
private void addFileToPayload(String filename) {
payload.addBlock(new FileBlock(filename));
addPayloadFile(filename);
}
private void embedNotifying(EmbeddingProgress progress, String message, String password) {
payload.addBlock(new MessageBlock(message));
payload.setPassword(password);
......@@ -439,6 +434,11 @@ public class EmbedUi {
}
}
private void addFileToPayload(String filename) {
payload.addBlock(new FileBlock(filename));
addPayloadFile(filename);
}
private void addPayloadFile(String filePath) {
String filename = Paths.get(filePath).getFileName().toString();
String extension = FileUtils.getFileExtension(filename);
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!