v1.4.0-beta/add chat notification and alerts UI

This commit is contained in:
Ayushya Amitabh
2020-06-09 14:02:15 -04:00
parent fca1ffb659
commit 634e08ae63
4 changed files with 122 additions and 21 deletions
+4
View File
@@ -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 {