mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 12:54:58 +00:00
Keep the desktop client updated as to the app's new message count.
(imported from commit c8deb2a773ee5c82f9d2decdced936f2f18dd4e0)
This commit is contained in:
@@ -94,6 +94,12 @@ exports.update_title_count = function () {
|
||||
util.set_favicon('/static/favicon.ico?v=2');
|
||||
}
|
||||
}
|
||||
|
||||
if (window.bridge !== undefined) {
|
||||
// We don't use 'n' because we want the exact count. The bridge handles
|
||||
// which icon to show.
|
||||
window.bridge.updateCount(new_message_count);
|
||||
}
|
||||
};
|
||||
|
||||
exports.window_has_focus = function () {
|
||||
|
||||
Reference in New Issue
Block a user