diff options
Diffstat (limited to 'static/pichat.js')
| -rwxr-xr-x | static/pichat.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/static/pichat.js b/static/pichat.js index 8f61c9b..d51d18d 100755 --- a/static/pichat.js +++ b/static/pichat.js @@ -134,7 +134,10 @@ function refresh() { var messages = $.grep( json.messages, function(m) { return !isDuplicateMessage(m) }); - updateUI(messages, json.users); + updateUI(messages, json.users); + if (typeof UnseenMsgCounter !== 'undefined') { + UnseenMsgCounter += messages.length; + } } catch(e) { if (IsAdmin) { alert("Exception in refresh"); |
