Fixed chat uploads being broken.

This commit is contained in:
flash 2025-01-17 16:04:07 +00:00
parent 3c375770fb
commit 5b8b6df0c4

View file

@ -772,9 +772,6 @@ const MamiInit = async args => {
const entry = sbUploads.createEntry(file);
const task = ctx.eeprom.create(file);
task.onProgress(prog => {
entry.progress = prog.progress;
});
entry.addOption({
name: 'cancel',
text: 'Cancel upload',
@ -782,7 +779,7 @@ const MamiInit = async args => {
});
try {
const fileInfo = await task.start();
const fileInfo = await task.start(prog => { entry.progress = prog.progress; });
entry.optionsVisible = false;
entry.uploadInfo = fileInfo;