* A encrypted message will be decrypted and shown in the editor * @param {String} armored
(armored)
| 312 | * @param {String} armored |
| 313 | */ |
| 314 | scheduleDecrypt(armored) { |
| 315 | if (armored.length > 400000 && !this.state.popupId) { |
| 316 | // show spinner for large messages |
| 317 | this.ports.editor.emit('decrypt-in-progress'); |
| 318 | } |
| 319 | setTimeout(() => { |
| 320 | this.decryptArmored(armored); |
| 321 | }, 50); |
| 322 | } |
| 323 | |
| 324 | setAttachments(attachments) { |
| 325 | const encrypted = []; |
no test coverage detected