Need cto push the actual userId not the toLowerCase version, as userId's are case sensitive

pull/21833/head
wmwragg 2016-09-12 17:38:32 +01:00
parent 5a0a72ee46
commit 96299e864a
1 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ module.exports = React.createClass({
onSelected: function(index) { onSelected: function(index) {
var inviteList = this.state.inviteList.slice(); var inviteList = this.state.inviteList.slice();
inviteList.push(this.state.queryList[index].userId.toLowerCase()); inviteList.push(this.state.queryList[index].userId);
this.setState({ this.setState({
inviteList: inviteList, inviteList: inviteList,
queryList: [], queryList: [],
@ -219,7 +219,7 @@ module.exports = React.createClass({
query = query.toLowerCase(); query = query.toLowerCase();
// dount match any that are already on the invite list // dount match any that are already on the invite list
if (this._isOnInviteList(uid)) { if (this._isOnInviteList(uid).toLowerCase()) {
return false; return false;
} }