mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
ContactProperty and FilterCondition use reviveFromJson
This commit is contained in:
parent
9844c1882c
commit
2470f1add6
9 changed files with 78 additions and 75 deletions
|
|
@ -289,15 +289,14 @@ class EmailModel extends AbstractModel {
|
|||
*/
|
||||
static reviveFromJson(json) {
|
||||
const email = super.reviveFromJson(json);
|
||||
if (email && email.email) {
|
||||
email.name = json.Name.trim();
|
||||
email.email = json.Email.trim();
|
||||
email.dkimStatus = (json.DkimStatus || '').trim();
|
||||
email.dkimValue = (json.DkimValue || '').trim();
|
||||
if (email) {
|
||||
email.name = json.Name;
|
||||
email.email = json.Email;
|
||||
email.dkimStatus = (json.DkimStatus || '');
|
||||
email.dkimValue = (json.DkimValue || '');
|
||||
email.clearDuplicateName();
|
||||
return email;
|
||||
}
|
||||
return null;
|
||||
return email;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue