Skip to content

Commit

Permalink
Auto save draft doesn't require the headers to be altered
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Nov 12, 2013
1 parent 14cd9ec commit 5aef5f3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions imp/js/compose-dimp.js
Expand Up @@ -668,15 +668,17 @@ var DimpCompose = {
this.seed
);

if (this.hash_hdrs) {
if (Object.isUndefined(this.hash_hdrs)) {
msg = this.hash_msgOrig;
sig = this.hash_sigOrig;
} else {
msg = this.msgHash();
sig = this.sigHash();
if (this.hash_hdrs != hdrs || this.hash_msg != msg || this.hash_sig != sig) {
if (this.hash_hdrs != hdrs ||
this.hash_msg != msg ||
this.hash_sig != sig) {
this.uniqueSubmit('autoSaveDraft');
}
} else {
msg = this.hash_msgOrig;
sig = this.hash_sigOrig;
}

this.hash_hdrs = hdrs;
Expand Down

0 comments on commit 5aef5f3

Please sign in to comment.