You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Oops, toLowerCase call in wrong place
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user