mirror of https://github.com/vector-im/riot-web
Need cto push the actual userId not the toLowerCase version, as userId's are case sensitive
parent
5a0a72ee46
commit
96299e864a
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue