Added valid but unknown mx user

This commit is contained in:
wmwragg 2016-09-13 17:09:40 +01:00
parent 890100a5bc
commit 7fa102998c
3 changed files with 21 additions and 5 deletions

View file

@ -120,7 +120,8 @@ module.exports = React.createClass({
} else if (e.keyCode === 32 || e.keyCode === 188) { // space or comma
e.stopPropagation();
e.preventDefault();
if (Invite.isValidAddress(this.refs.textinput.value)) {
var check = Invite.isValidAddress(this.refs.textinput.value);
if (check === true || check === null) {
var inviteList = this.state.inviteList.slice();
inviteList.push(this.refs.textinput.value);
this.setState({