mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
only use shareAttachmentWithServer for old attachments
This commit is contained in:
@@ -467,7 +467,9 @@ export class CipherService implements CipherServiceAbstraction {
|
|||||||
const attachmentPromises: Array<Promise<any>> = [];
|
const attachmentPromises: Array<Promise<any>> = [];
|
||||||
if (cipher.attachments != null) {
|
if (cipher.attachments != null) {
|
||||||
cipher.attachments.forEach((attachment) => {
|
cipher.attachments.forEach((attachment) => {
|
||||||
attachmentPromises.push(this.shareAttachmentWithServer(attachment, cipher.id, organizationId));
|
if (attachment.key == null) {
|
||||||
|
attachmentPromises.push(this.shareAttachmentWithServer(attachment, cipher.id, organizationId));
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
await Promise.all(attachmentPromises);
|
await Promise.all(attachmentPromises);
|
||||||
|
|||||||
Reference in New Issue
Block a user