show toast when user tries to start a conversation with an empty recipient id

pull/715/head
Audric Ackermann 5 years ago
parent 407adab758
commit 71c47ba87a

@ -256,6 +256,12 @@ export class LeftPaneMessageSection extends React.Component<Props, any> {
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;

Loading…
Cancel
Save