Zulip 服务器和 Web 应用程序。开源团队聊天可帮助团队保持高效和专注。
Go to file
Steve Howell 69977ce825 Fix unread count in favicon when focusing window.
This fixes a pretty subtle bug where the window-focus handler
wasn't updating the unread counts in the title, but it was
hard to notice, because as soon as you moved the mouse, the
problem fixed itself.

Apart from fixing the bug, this patch eliminates the expensive
mouseover handler, which is a big win.

The fix to the window-focus involved some unrelated cleanup.  I
decoupled update_title_count() from received_messages(), as the
former method will probably live somewhere else soon.

Also, in order to get window-focus to update the title count,
I went pretty deep in the stack and added a call to
update_title_count() inside of update_unread_counts().  This
fixes window-focus as well as restoring that behavior to
code paths that were calling received_messages().

You'll see that call to update_title_count() is now adjacent
to the call to update_dom_with_unread_counts(), which is
fairly sensible, but then are calls to similar methods like
notifications.received_messages() that happen higher up in
the call chain, which seems kind of inconsistent to me.  I
also don't like the fact that you have to go through a
mostly model-based function to get to view-based stuff, so
there are some refactorings coming.

(imported from commit 2261450f205f1aa81d30194b371a1c5ac6a7bdec)
2013-05-20 23:29:56 -04:00
api Implement Humbug SVN integration. 2013-05-01 11:37:07 -07:00
assets favicon: Add an 'infinite' favicon for more than 99 messages 2013-02-15 16:18:24 -05:00
bots zephyr_mirror: Fix incorrect check for already running mirror bots. 2013-05-20 23:29:53 -04:00
certs Include certificate configuration for www.humbughq.com via Comodo 2013-05-17 01:02:32 -04:00
confirmation [third]: Accept and pass along gafyd_name parameters to confirmation templates. 2013-04-24 12:03:41 -07:00
humbug Make it possible to get to the "register" page from our signup form. 2013-05-20 23:29:55 -04:00
node_modules Import Handlebars compiler and dependencies 2013-04-02 14:43:58 -04:00
servers Enable rabbitmq consumser checks on app 2013-05-20 23:29:54 -04:00
templates Make it possible to get to the "register" page from our signup form. 2013-05-20 23:29:55 -04:00
tools [manual] Excise South migrations prior to the User merge. 2013-05-20 23:29:54 -04:00
zephyr Fix unread count in favicon when focusing window. 2013-05-20 23:29:56 -04:00
.gitignore gitignore: Add .DS_Store 2013-02-06 16:31:55 -05:00
manage.py chmod +x manage.py 2012-10-25 15:22:18 -04:00