fix: Bug - Local files should be remembered by client
This commit is contained in:
@@ -149,6 +149,17 @@ export class AttachmentPersistenceService {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this.attachmentStorage.providesInlineObjectUrl()) {
|
||||
const nativeUrl = await this.attachmentStorage.getFileUrl(diskPath);
|
||||
|
||||
if (nativeUrl) {
|
||||
this.revokeAttachmentObjectUrl(attachment);
|
||||
attachment.objectUrl = nativeUrl;
|
||||
attachment.available = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
this.revokeAttachmentObjectUrl(attachment);
|
||||
|
||||
const restored = await this.restoreAttachmentBlobFromDiskPath(attachment, diskPath);
|
||||
|
||||
Reference in New Issue
Block a user