MCPcopy
hub / github.com/mailvelope/mailvelope / scheduleDecrypt

Method scheduleDecrypt

src/controller/editor.controller.js:314–322  ·  view source on GitHub ↗

* A encrypted message will be decrypted and shown in the editor * @param {String} armored

(armored)

Source from the content-addressed store, hash-verified

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 = [];

Callers 1

onEditorOptionsMethod · 0.95

Calls 2

decryptArmoredMethod · 0.95
emitMethod · 0.45

Tested by

no test coverage detected