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

Function hideNotification

src/components/editor/editor.js:414–422  ·  view source on GitHub ↗
(timeout = 0, closeEditor = false)

Source from the content-addressed store, hash-verified

412 }
413
414 hideNotification(timeout = 0, closeEditor = false) {
415 setTimeout(() => {
416 if (closeEditor) {
417 this.port.emit('editor-close');
418 } else {
419 this.setState({showNotification: false, notification: null});
420 }
421 }, timeout);
422 }
423
424 isEncryptDisabled() {
425 const {plainText, recipients, recipientsCc, publicKeys, extraKey, extraKeys} = this.state;

Callers

nothing calls this directly

Calls 2

emitMethod · 0.45
setStateMethod · 0.45

Tested by

no test coverage detected