You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
lowerCase query so that searching for Erik will actually find Erik..
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -302,6 +302,7 @@ module.exports = React.createClass({
|
|||||||
const m = this.memberDict[userId];
|
const m = this.memberDict[userId];
|
||||||
|
|
||||||
if (query) {
|
if (query) {
|
||||||
|
query = query.toLowerCase();
|
||||||
const matchesName = m.name.toLowerCase().indexOf(query) !== -1;
|
const matchesName = m.name.toLowerCase().indexOf(query) !== -1;
|
||||||
const matchesId = m.userId.toLowerCase().indexOf(query) !== -1;
|
const matchesId = m.userId.toLowerCase().indexOf(query) !== -1;
|
||||||
|
|
||||||
@@ -399,7 +400,7 @@ module.exports = React.createClass({
|
|||||||
<form autoComplete="off">
|
<form autoComplete="off">
|
||||||
<input className="mx_MemberList_query" id="mx_MemberList_query" type="text"
|
<input className="mx_MemberList_query" id="mx_MemberList_query" type="text"
|
||||||
onChange={this.onSearchQueryChanged} value={this.state.searchQuery}
|
onChange={this.onSearchQueryChanged} value={this.state.searchQuery}
|
||||||
placeholder={_t('Filter room members')} />
|
placeholder={ _t('Filter room members') } />
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -412,9 +413,9 @@ module.exports = React.createClass({
|
|||||||
getChildren={this._getChildrenJoined}
|
getChildren={this._getChildrenJoined}
|
||||||
getChildCount={this._getChildCountJoined}
|
getChildCount={this._getChildCountJoined}
|
||||||
/>
|
/>
|
||||||
{ invitedSection }
|
{invitedSection}
|
||||||
</GeminiScrollbar>
|
</GeminiScrollbar>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user