MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / onVerifiedMessage

Function onVerifiedMessage

src/components/decrypt-message/DecryptMessage.js:109–115  ·  view source on GitHub ↗
({message, signers, clearText})

Source from the content-addressed store, hash-verified

107 }
108
109 onVerifiedMessage({message, signers, clearText}) {
110 if (clearText) {
111 message = `<pre style="color: inherit; font-size: inherit; white-space: pre-wrap;">${encodeHTML(message)}</pre>`;
112 }
113 this.onSignatureVerification({signers});
114 this.onDecryptedMessage({message, signOnly: true});
115 }
116
117 onDecryptedMessage({message, signOnly = false}) {
118 this.setState({message, signOnly, decryptDone: true});

Callers

nothing calls this directly

Calls 1

encodeHTMLFunction · 0.90

Tested by

no test coverage detected