From 71c47ba87ae179a8ab28cbea21715de1d1a9326b Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Wed, 8 Jan 2020 14:55:37 +1100 Subject: [PATCH] show toast when user tries to start a conversation with an empty recipient id --- ts/components/session/LeftPaneMessageSection.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ts/components/session/LeftPaneMessageSection.tsx b/ts/components/session/LeftPaneMessageSection.tsx index 193aae549..9f8716146 100644 --- a/ts/components/session/LeftPaneMessageSection.tsx +++ b/ts/components/session/LeftPaneMessageSection.tsx @@ -256,6 +256,12 @@ export class LeftPaneMessageSection extends React.Component { const { openConversationInternal } = this.props; if (!this.state.pubKeyPasted && !this.props.searchTerm) { + window.pushToast({ + title: window.i18n('invalidNumberError'), + type: 'error', + id: 'invalidPubKey', + }); + return; } let pubkey: string;