Changeset 803449


Ignore:
Timestamp:
Nov 10, 2014, 4:14:22 PM (8 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
1d5f6a
Parents:
ecb992
Message:

use enigmail status values for comparison

Location:
modules/identityDataExtras
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • modules/identityDataExtras/PGPEncryption.js

    recb992 r803449  
    7272  __new_getValueFromEnvironment_msgCompose: function () {
    7373    if (this.enigmail_active && this.active) {
    74       this.value = (this.currentWindow.Enigmail.msg.statusEncrypted) ? "true" : "false";
     74      this.value = (
     75        this.currentWindow.Enigmail.msg.statusEncrypted == this.currentWindow.EnigmailCommon.ENIG_FINAL_YES ||
     76        this.currentWindow.Enigmail.msg.statusEncrypted == this.currentWindow.EnigmailCommon.ENIG_FINAL_FORCEYES) ? "true" : "false";
    7577    }
    7678  }
  • modules/identityDataExtras/PGPMIME.js

    recb992 r803449  
    7272  __new_getValueFromEnvironment_msgCompose: function () {
    7373    if (this.enigmail_active && this.active) {
    74       this.value = (this.currentWindow.Enigmail.msg.statusPGPMime) ? "true" : "false";
     74      this.value = (
     75        this.currentWindow.Enigmail.msg.statusPGPMime == this.currentWindow.EnigmailCommon.ENIG_FINAL_YES ||
     76        this.currentWindow.Enigmail.msg.statusPGPMime == this.currentWindow.EnigmailCommon.ENIG_FINAL_FORCEYES) ? "true" : "false";
    7577    }
    7678  }
  • modules/identityDataExtras/PGPSignature.js

    recb992 r803449  
    7777  __new_getValueFromEnvironment_msgCompose: function () {
    7878    if (this.enigmail_active && this.active) {
    79       this.value = (this.currentWindow.Enigmail.msg.statusSigned) ? "true" : "false";
     79      this.value = (
     80        this.currentWindow.Enigmail.msg.statusSigned == this.currentWindow.EnigmailCommon.ENIG_FINAL_YES ||
     81        this.currentWindow.Enigmail.msg.statusSigned == this.currentWindow.EnigmailCommon.ENIG_FINAL_FORCEYES) ? "true" : "false";
    8082    }
    8183  }
Note: See TracChangeset for help on using the changeset viewer.