v1.4.0-beta/add chat notification and alerts UI
This commit is contained in:
@@ -45,14 +45,17 @@ export default class Create extends Component {
|
||||
const { userName, name, pin, mode } = this.state;
|
||||
if (!userName.replace(/\s+/g, '')) {
|
||||
this.props.notify('Missing user name');
|
||||
this.props.updateLoading(false);
|
||||
return;
|
||||
}
|
||||
if (!name.replace(/\s+/g, '')) {
|
||||
this.props.notify('Missing party name');
|
||||
this.props.updateLoading(false);
|
||||
return;
|
||||
}
|
||||
if (!pin.replace(/\s+/g, '')) {
|
||||
this.props.notify('Missing party pin');
|
||||
this.props.updateLoading(false);
|
||||
return;
|
||||
}
|
||||
if (userName && name && pin) {
|
||||
@@ -64,6 +67,7 @@ export default class Create extends Component {
|
||||
this.joinCall(userName, name, pin);
|
||||
break;
|
||||
default:
|
||||
this.props.updateLoading(false);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user