Make the "show inline images as attachments" optional and cleanup localization data

This commit is contained in:
the-djmaze 2022-10-03 20:15:12 +02:00
parent 02eb5ad4e8
commit a51f86ae28
45 changed files with 1006 additions and 1251 deletions

View file

@ -150,8 +150,9 @@ export class MessageModel extends AbstractModel {
this.addComputables({
attachmentIconClass: () => FileInfo.getAttachmentsIconClass(this.attachments()),
threadsLen: () => this.threads().length,
// hasAttachments: () => this.attachments().filter(item => !item.isLinked()).length,
hasAttachments: () => this.attachments().length,
listAttachments: () => this.attachments()
.filter(item => SettingsUserStore.listInlineAttachments() || !item.isLinked()),
hasAttachments: () => this.listAttachments().length,
isUnseen: () => !this.flags().includes('\\seen'),
isFlagged: () => this.flags().includes('\\flagged'),