Commit 45a3e643 authored by amanzur's avatar amanzur Committed by JC Brand

online users count issue-656 (#657)

* online users count issue-656

* change log entry added for issue 656
parent 3ca61080
# Changelog # Changelog
## 1.0.3 (Unreleased) ## 1.0.3 (Unreleased)
- Bugfix. Login form doesn't render after logging out, when `auto_reconnect = false` [jcbrand] - Bugfix. Login form doesn't render after logging out, when `auto_reconnect = false` [jcbrand]
- Also indicate new day for the first day's messages. [jcbrand] - Also indicate new day for the first day's messages. [jcbrand]
- Chat bot messages don't appear when they have the same ids as their commands. [jcbrand] - Chat bot messages don't appear when they have the same ids as their commands. [jcbrand]
...@@ -13,6 +12,8 @@ ...@@ -13,6 +12,8 @@
- New API method `converse.rooms.close()` - New API method `converse.rooms.close()`
- #553 Add processing hints to OTR messages [jcbrand] - #553 Add processing hints to OTR messages [jcbrand]
- #650 Don't ignore incoming messages with same JID as current user (might be MAM archived) [jcbrand] - #650 Don't ignore incoming messages with same JID as current user (might be MAM archived) [jcbrand]
- #656 online users count in minimized chat window on initialization corrected
## 1.0.2 (2016-05-24) ## 1.0.2 (2016-05-24)
......
...@@ -668,6 +668,7 @@ ...@@ -668,6 +668,7 @@
initialize: function () { initialize: function () {
this.render(); this.render();
this.updateOnlineCount();
converse.on('initialized', function () { converse.on('initialized', function () {
converse.roster.on("add", this.updateOnlineCount, this); converse.roster.on("add", this.updateOnlineCount, this);
converse.roster.on('change', this.updateOnlineCount, this); converse.roster.on('change', this.updateOnlineCount, this);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment