WIP improve export

This commit is contained in:
N-Pex 2025-06-29 09:28:56 +02:00
parent 9a124c5ab9
commit 94bf35875a
3 changed files with 174 additions and 169 deletions

View file

@ -149,9 +149,10 @@ export class AttachmentManager {
attachment.loadSrc = (options?: EventAttachmentLoadSrcOptions) => {
if (attachment.src && !options?.asBlob) {
return Promise.resolve({data: attachment.src, type: "src"});
} else if (attachment.srcPromise) {
} else if (attachment.srcPromise && !options?.asBlob) {
return attachment.srcPromise;
}
Implement loadBlob somewhere here!
attachment.srcPromise = this._loadEventAttachmentOrThumbnail(event, false, !!options?.asBlob, (percent) => {
attachment.srcProgress = percent;
}).then((res) => {