parent
0015e3d19e
commit
6fd59aa4c9
2 changed files with 2 additions and 3 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
|
|
@ -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) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue