(timeout = 0, closeEditor = false)
| 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; |