Fixed chat uploads being broken.
This commit is contained in:
parent
3c375770fb
commit
5b8b6df0c4
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue