From dd99f845268841999dbeb9f76404189e2399ee7d Mon Sep 17 00:00:00 2001 From: Frank Cash Date: Tue, 16 Aug 2016 21:23:32 -0400 Subject: [PATCH] Now tells user if verified isn't in contacts (#11) --- app/components/composer/ComposerForm.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/components/composer/ComposerForm.js b/app/components/composer/ComposerForm.js index f5fe3ad..f0f7c73 100644 --- a/app/components/composer/ComposerForm.js +++ b/app/components/composer/ComposerForm.js @@ -149,7 +149,11 @@ class ComposerForm extends Component { handleVerify = async () => { const match = await this._pgp(verify, this.props.keychain)() - this.props.setOutput(`Signed message is verified to match: ${ match.name } <${ match.email }>`) + if(typeof match.name === "undefined"){ + this.props.setOutput('The author of this message appears to not be in your contact list') + }else{ + this.props.setOutput(`Signed message is verified to match: ${ match.name } <${ match.email }>`) + } } getProps = () => {