You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-22 18:41:57 +03:00
Display User objects in search results
This commit is contained in:
@ -63,7 +63,8 @@ class UserEntity extends Entity {
|
||||
}
|
||||
|
||||
matches(queryString) {
|
||||
return this.model.displayName.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
|
||||
var name = this.model.displayName || this.model.userId;
|
||||
return name.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user