addAttachmentHelper(url,..) the url should be id

This commit is contained in:
the-djmaze 2022-11-10 12:41:04 +01:00
parent 364947d1f9
commit 14bd9720e9

View file

@ -1222,13 +1222,13 @@ export class ComposePopupView extends AbstractViewPopup {
}
/**
* @param {string} url
* @param {string} id
* @param {string} name
* @param {number} size
* @returns {ComposeAttachmentModel}
*/
addAttachmentHelper(url, name, size) {
const attachment = new ComposeAttachmentModel(url, name, size);
addAttachmentHelper(id, name, size) {
const attachment = new ComposeAttachmentModel(id, name, size);
this.addAttachment(attachment, 1);
return attachment;
}