Make sure sent audio is shown

Issue #681
This commit is contained in:
N-Pex 2025-09-04 11:23:15 +02:00
parent 0015e3d19e
commit 6fd59aa4c9
2 changed files with 2 additions and 3 deletions

View file

@ -226,7 +226,7 @@ export default {
} }
return null; return null;
} }
if (!isForExport && event.uploadBatch) { if (!isForExport && event.uploadBatch && event.uploadBatch.sendingStatus !== 'sent') {
return MessageThreadSending; return MessageThreadSending;
} }
if (event.isMxThread) { if (event.isMxThread) {

View file

@ -560,8 +560,7 @@ export const createUploadBatch = (manager: AttachmentManager | null, room: Room
}); });
totalOriginalFileSize.value = attachments.value.reduce((cb, item) => { totalOriginalFileSize.value = attachments.value.reduce((cb, item) => {
const thisFileCurrent = item.scaledFile && item.useScaled ? item.scaledFile.size : item.file.size; return cb + item.file.size;
return cb + thisFileCurrent;
}, 0); }, 0);
const onLocalEchoUpdated = (event: KeanuEvent) => { const onLocalEchoUpdated = (event: KeanuEvent) => {