Browse Source

Added null check for keyList retrieved from pEpKeyList property.

1.1.101
Jorg Knobloch 2 years ago
parent
commit
009b8b1551
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      addon/content/pepmsghdrview.js

+ 1
- 1
addon/content/pepmsghdrview.js View File

@ -441,7 +441,7 @@ var pEpHdrView = {
let keyList = message.opt_fields.find((e) => e.key == "X-KeyList");
if (keyList) msgHdr.setStringProperty("pEpKeyList", keyList.value);
msgHdr.setStringProperty("pEpPrivacyRating", rating.toString(10));
this.updatePrivacy(this.win, msgHdr, rating, keyList.value);
this.updatePrivacy(this.win, msgHdr, rating, keyList && keyList.value);
},
updatePrivacy(win, msgHdr, rating, keyList = null) {


Loading…
Cancel
Save