diff --git a/src/components/views/dialogs/ChatInviteDialog.js b/src/components/views/dialogs/ChatInviteDialog.js index ce7a0c26d5..9dface8da4 100644 --- a/src/components/views/dialogs/ChatInviteDialog.js +++ b/src/components/views/dialogs/ChatInviteDialog.js @@ -166,7 +166,7 @@ module.exports = React.createClass({ onSelected: function(index) { var inviteList = this.state.inviteList.slice(); - inviteList.push(this.state.queryList[index].userId.toLowerCase()); + inviteList.push(this.state.queryList[index].userId); this.setState({ inviteList: inviteList, queryList: [], @@ -219,7 +219,7 @@ module.exports = React.createClass({ query = query.toLowerCase(); // dount match any that are already on the invite list - if (this._isOnInviteList(uid)) { + if (this._isOnInviteList(uid).toLowerCase()) { return false; }