mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
show toast when user tries to start a conversation with an empty recipient id
This commit is contained in:
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…
Reference in a new issue