mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Improved bug #228
This commit is contained in:
parent
9ea32aae95
commit
9b82830c36
1 changed files with 1 additions and 4 deletions
|
|
@ -73,7 +73,6 @@ export class MessageModel extends AbstractModel {
|
||||||
isHtml: false,
|
isHtml: false,
|
||||||
hasImages: false,
|
hasImages: false,
|
||||||
hasExternals: false,
|
hasExternals: false,
|
||||||
hasAttachments: false,
|
|
||||||
|
|
||||||
pgpSigned: null,
|
pgpSigned: null,
|
||||||
pgpEncrypted: null,
|
pgpEncrypted: null,
|
||||||
|
|
@ -95,6 +94,7 @@ export class MessageModel extends AbstractModel {
|
||||||
attachmentIconClass: () => FileInfo.getAttachmentsIconClass(this.attachments()),
|
attachmentIconClass: () => FileInfo.getAttachmentsIconClass(this.attachments()),
|
||||||
threadsLen: () => this.threads().length,
|
threadsLen: () => this.threads().length,
|
||||||
isImportant: () => MessagePriority.High === this.priority(),
|
isImportant: () => MessagePriority.High === this.priority(),
|
||||||
|
hasAttachments: () => this.attachments().hasVisible()
|
||||||
|
|
||||||
isDeleted: () => this.flags().includes('\\deleted'),
|
isDeleted: () => this.flags().includes('\\deleted'),
|
||||||
isUnseen: () => !this.flags().includes('\\seen') /* || this.flags().includes('\\unseen')*/,
|
isUnseen: () => !this.flags().includes('\\seen') /* || this.flags().includes('\\unseen')*/,
|
||||||
|
|
@ -150,7 +150,6 @@ export class MessageModel extends AbstractModel {
|
||||||
this.isHtml(false);
|
this.isHtml(false);
|
||||||
this.hasImages(false);
|
this.hasImages(false);
|
||||||
this.hasExternals(false);
|
this.hasExternals(false);
|
||||||
this.hasAttachments(false);
|
|
||||||
this.attachments(new AttachmentCollectionModel);
|
this.attachments(new AttachmentCollectionModel);
|
||||||
|
|
||||||
this.pgpSigned(null);
|
this.pgpSigned(null);
|
||||||
|
|
@ -471,7 +470,6 @@ export class MessageModel extends AbstractModel {
|
||||||
}
|
}
|
||||||
|
|
||||||
initView() {
|
initView() {
|
||||||
this.hasAttachments(this.attachments().hasVisible());
|
|
||||||
// init BlockquoteSwitcher
|
// init BlockquoteSwitcher
|
||||||
this.body.querySelectorAll('blockquote:not(.rl-bq-switcher)').forEach(node => {
|
this.body.querySelectorAll('blockquote:not(.rl-bq-switcher)').forEach(node => {
|
||||||
if (node.textContent.trim() && !node.parentNode.closest('blockquote')) {
|
if (node.textContent.trim() && !node.parentNode.closest('blockquote')) {
|
||||||
|
|
@ -552,7 +550,6 @@ export class MessageModel extends AbstractModel {
|
||||||
this.priority(message.priority());
|
this.priority(message.priority());
|
||||||
|
|
||||||
this.hasExternals(message.hasExternals());
|
this.hasExternals(message.hasExternals());
|
||||||
this.hasAttachments(message.hasAttachments());
|
|
||||||
|
|
||||||
this.emails = message.emails;
|
this.emails = message.emails;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue