From 5b8b6df0c45d6353a13abf4bb152b0d6965d0080 Mon Sep 17 00:00:00 2001 From: flashwave Date: Fri, 17 Jan 2025 16:04:07 +0000 Subject: [PATCH] Fixed chat uploads being broken. --- src/mami.js/main.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mami.js/main.js b/src/mami.js/main.js index 97bc9a4..bcd5dd0 100644 --- a/src/mami.js/main.js +++ b/src/mami.js/main.js @@ -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;