mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 03:59:21 +03:00
Move more JSON code into MailSo\Mail\Message
This commit is contained in:
parent
a019f4d80e
commit
49f76ffe76
7 changed files with 75 additions and 70 deletions
|
|
@ -85,7 +85,8 @@ export class MessageModel extends AbstractModel {
|
|||
spamResult: '',
|
||||
isSpam: false,
|
||||
hasVirus: null, // or boolean when scanned
|
||||
dateTimeStampInUTC: 0,
|
||||
dateTimestamp: 0,
|
||||
internalTimestamp: 0,
|
||||
priority: MessagePriority.Normal,
|
||||
|
||||
senderEmailsString: '',
|
||||
|
|
@ -341,7 +342,7 @@ export class MessageModel extends AbstractModel {
|
|||
|
||||
viewPopupMessage(print) {
|
||||
const
|
||||
timeStampInUTC = this.dateTimeStampInUTC() || 0,
|
||||
timeStampInUTC = this.dateTimestamp() || 0,
|
||||
ccLine = this.cc.toString(),
|
||||
bccLine = this.bcc.toString(),
|
||||
m = 0 < timeStampInUTC ? new Date(timeStampInUTC * 1000) : null,
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ export class MailMessageList extends AbstractViewRight {
|
|||
rtf = Intl.RelativeTimeFormat
|
||||
? new Intl.RelativeTimeFormat(doc.documentElement.lang, { numeric: "auto" }) : 0;
|
||||
MessagelistUserStore.forEach(msg => {
|
||||
let dt = (new Date(msg.dateTimeStampInUTC() * 1000)),
|
||||
let dt = (new Date(msg.dateTimestamp() * 1000)),
|
||||
date,
|
||||
ymd = Ymd(dt);
|
||||
if (!current || ymd != current.id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue