Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

fix last_active_ago timestamps, tab completion ordering, and implement currently_active semantics #226

Merged
merged 9 commits into from
Mar 17, 2016
Prev Previous commit
Next Next commit
never try to tab-complete yourself, doofus
  • Loading branch information
ara4n committed Mar 16, 2016
commit 50e33d30b6b87f1f5743a76c67a862357955f779
7 changes: 6 additions & 1 deletion src/components/structures/RoomView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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())
)
);
Expand Down