1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

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

This commit is contained in:
wmwragg
2016-09-12 17:38:32 +01:00
parent 5a0a72ee46
commit 96299e864a

View File

@@ -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;
}