zulip/zproject
Arpith Siromoney e073220e21 Add typing notifications front end.
Send typing notification events when user types in the compose box.
Listen for these events and display a notification.

Sending notifications: Notifications are throttled, so that start
notifications are sent every 10 seconds of active typing, and stop
notifications are sent 5 seconds after active typing stops or when the
compose box is closed.

Displaying notifications:
When a typing notification is received, if the current narrow is private
messages or is: pm-with and the user is not the sender,
"Othello is typing..." is displayed underneath the last message. This notification is
removed after 15 seconds. If another notification is received during this period, the
expiration is extended. When a stop notification is received the notification is removed.

Internally, a list of users currently typing is maintained for each
conversation (in a dict). When an event is received the list (for the appropriate
conversation) is updated and the notifications template is re-rendered
based on the narrow information. This template is also re-rendered when
the narrow changes.

Significantly modified by tabbott for clarity.

Fixes #150.
2017-03-17 20:45:07 -07:00
..
jinja2 jinja2: No need for custom render_to_response. 2017-03-17 13:57:34 -07:00
__init__.py Rename Django project to zproject. 2013-08-07 11:04:03 -04:00
backends.py github: Return '' when name is None. 2017-03-15 11:11:09 -07:00
dev_settings.py dev_settings: Fix linter error in recent mypy work. 2017-03-04 15:34:09 -08:00
dev_urls.py views: Rename __init__.py to zerver.views.registration. 2017-01-08 16:21:15 -08:00
legacy_urls.py Migrate json/set_muted_topics to muting/topics. 2017-03-09 20:52:29 -08:00
local_settings.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
prod_settings_template.py docs: Update email configuration documentation. 2017-02-22 22:26:43 -08:00
settings.py Add typing notifications front end. 2017-03-17 20:45:07 -07:00
terms.md.template Add TERMS_OF_SERVICE setting. 2016-07-29 20:47:31 -07:00
test_settings.py casper: Fix issues with server autoreloading on save. 2017-03-17 20:45:07 -07:00
urls.py Implemented API routes for muting/unmuting a topic 2017-03-15 16:19:00 -07:00
wsgi.py Django 1.10: Use uWSGI. 2016-12-13 21:40:43 -08:00