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
Auto-complete clicked suggestions
This commit is contained in:
@@ -201,8 +201,8 @@ module.exports = React.createClass({
|
||||
this.onEnter(ev);
|
||||
}
|
||||
else if (ev.keyCode === KeyCode.TAB) {
|
||||
var memberList = [];
|
||||
if (this.props.room) {
|
||||
if (this.props.tabComplete && this.props.room) {
|
||||
var memberList = [];
|
||||
// TODO: We should cache this list and only update it when the
|
||||
// member list changes. It's also horrendous that this is done here.
|
||||
memberList = this.props.room.getJoinedMembers().sort(function(a, b) {
|
||||
@@ -231,8 +231,6 @@ module.exports = React.createClass({
|
||||
}).map(function(m) {
|
||||
return new MemberEntry(m);
|
||||
});
|
||||
}
|
||||
if (this.props.tabComplete) {
|
||||
this.props.tabComplete.setCompletionList(memberList);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user