Browse Source

improve the cloneMessage logic

1.1.101
francesco 3 years ago
parent
commit
fafe90f623
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      chrome/content/modules/pEp.js

+ 4
- 2
chrome/content/modules/pEp.js View File

@ -231,7 +231,7 @@ class pEp {
function deepCopy(obj) {
return obj && JSON.parse(JSON.stringify(obj));
}
return new pEp.Message(source.id,
let clone = new pEp.Message(source.id,
source.shortmsg,
source.longmsg,
deepCopy(source.from),
@ -239,7 +239,9 @@ class pEp {
source.dir,
source.enc_format,
deepCopy(source.attachments),
deepCopy(source.opt_fields));
deepCopy(source.opt_fields));
clone.setCc(source.cc);
clone.setBcc(source.bcc);
}
}


Loading…
Cancel
Save