Cleanup message attachments collections

This commit is contained in:
djmaze 2021-12-16 15:54:43 +01:00
parent eb669715ca
commit 94bfe09f63
6 changed files with 28 additions and 34 deletions

View file

@ -11,6 +11,13 @@ export class AttachmentCollectionModel extends AbstractCollectionModel
*/
static reviveFromJson(items) {
return super.reviveFromJson(items, attachment => AttachmentModel.reviveFromJson(attachment));
/*
const attachments = super.reviveFromJson(items, attachment => AttachmentModel.reviveFromJson(attachment));
if (attachments) {
attachments.InlineCount = attachments.reduce((accumulator, a) => accumulator + (a.isInline ? 1 : 0), 0);
}
return attachments;
*/
}
/**