Keep the desktop client updated as to the app's new message count.

(imported from commit c8deb2a773ee5c82f9d2decdced936f2f18dd4e0)
This commit is contained in:
Luke Faraone
2013-06-02 11:42:03 -07:00
parent c5d3ca0247
commit a73e86cd9f

View File

@@ -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 () {