Closed bkad closed 12 years ago
this fucks up when alice@foo.com
and alice@bar.com
are logged into the same channel, but that's going to pretty rare for our use case.
use:
document.hasFocus() && !document.webkitHidden
5a4a4ebd45177db40a856e5ed826ce0cfe52b451
A chat is considered to be directed towards a person when a message includes
@username
whereusername
is the everything before the@
in the user's email address.