From 96299e864a71f112e2b409b5797ccf42b74fec9b Mon Sep 17 00:00:00 2001 From: wmwragg Date: Mon, 12 Sep 2016 17:38:32 +0100 Subject: [PATCH] Need cto push the actual userId not the toLowerCase version, as userId's are case sensitive --- src/components/views/dialogs/ChatInviteDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }