From 0f720dd6b828b7a935388f7698aa0a2fd84ea531 Mon Sep 17 00:00:00 2001 From: wmwragg Date: Mon, 12 Sep 2016 17:41:32 +0100 Subject: [PATCH] Oops, toLowerCase call in wrong place --- 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 9dface8da4..ce7ca0ff4d 100644 --- a/src/components/views/dialogs/ChatInviteDialog.js +++ b/src/components/views/dialogs/ChatInviteDialog.js @@ -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).toLowerCase()) { + if (this._isOnInviteList(uid)) { return false; } @@ -245,7 +245,7 @@ module.exports = React.createClass({ _isOnInviteList: function(uid) { for (let i = 0; i < this.state.inviteList.length; i++) { - if (this.state.inviteList[i] === uid) { + if (this.state.inviteList[i].toLowerCase() === uid) { return true; } }