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

Conversation

ara4n
Copy link
Member

@ara4n ara4n commented Mar 16, 2016

No description provided.

…ocomplete based on the most recently active users in a room, even if we can't spell the first char of their name. it does break tab-complete for accessibility, but that was broken anyway.
// _|__ _|_ followed by the end of line
// / \/ \
const MATCH_REGEX = /(^|\s)(\S+)$/;
const MATCH_REGEX = /(^|\s)(\S*)$/;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this changing? it scares me

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as the commit says, it lets you hit tab on an empty textarea to start tab-completing the most recently active nick

active = (
(Date.now() - (user.lastPresenceTs - user.lastActiveAgo)) || -1
);
active = member.user.lastActiveAgo ?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does member come from here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oooooooops, good catch; thanks

@dbkr dbkr assigned ara4n and unassigned dbkr Mar 17, 2016
@ara4n
Copy link
Member Author

ara4n commented Mar 17, 2016

@dbkr PTAL

@ara4n ara4n assigned dbkr and unassigned ara4n Mar 17, 2016
@dbkr
Copy link
Member

dbkr commented Mar 17, 2016

lgtm

@dbkr dbkr assigned ara4n and unassigned dbkr Mar 17, 2016
ara4n added a commit that referenced this pull request Mar 17, 2016
fix last_active_ago timestamps, tab completion ordering, and implement currently_active semantics
@ara4n ara4n merged commit c51dac2 into develop Mar 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants