You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Don't show current user in queryList
This commit is contained in:
@@ -265,11 +265,16 @@ module.exports = React.createClass({
|
|||||||
var uid = user.userId.toLowerCase();
|
var uid = user.userId.toLowerCase();
|
||||||
query = query.toLowerCase();
|
query = query.toLowerCase();
|
||||||
|
|
||||||
// dount match any that are already on the invite list
|
// don't match any that are already on the invite list
|
||||||
if (this._isOnInviteList(uid)) {
|
if (this._isOnInviteList(uid)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ignore current user
|
||||||
|
if (uid === MatrixClientPeg.get().credentials.userId) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// direct prefix matches
|
// direct prefix matches
|
||||||
if (name.indexOf(query) === 0 || uid.indexOf(query) === 0) {
|
if (name.indexOf(query) === 0 || uid.indexOf(query) === 0) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user