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

This commit is contained in:
Audric Ackermann 2020-01-08 14:55:37 +11:00
parent 407adab758
commit 71c47ba87a

View file

@ -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;