Duplicate attachment for every comment fix

This commit is contained in:
Ribas160 2025-06-29 21:27:11 +03:00
parent 78dd0e2d8e
commit fcce915a5f
2 changed files with 4 additions and 1 deletions

View file

@ -5521,6 +5521,9 @@ jQuery.PrivateBin = (function($, RawDeflate) {
me.run(paste);
});
// Clear attachments to prevent duplicates
AttachmentViewer.removeAttachment();
// decrypt paste & attachments
decryptionPromises.push(decryptPaste(paste, key, password));