Merge pull request #226 from matrix-org/matthew/fix-last-active

fix last_active_ago timestamps, tab completion ordering, and implement currently_active semantics
This commit is contained in:
Matthew Hodgson 2016-03-17 14:36:52 +00:00
commit c51dac2f29
8 changed files with 33 additions and 23 deletions

View file

@ -455,11 +455,16 @@ module.exports = React.createClass({
},
_updateTabCompleteList: new rate_limited_func(function() {
var cli = MatrixClientPeg.get();
if (!this.state.room || !this.tabComplete) {
return;
}
var members = this.state.room.getJoinedMembers().filter(function(member) {
if (member.userId !== cli.credentials.userId) return true;
});
this.tabComplete.setCompletionList(
MemberEntry.fromMemberList(this.state.room.getJoinedMembers()).concat(
MemberEntry.fromMemberList(members).concat(
CommandEntry.fromCommands(SlashCommands.getCommandList())
)
);