Răsfoiți Sursa

Bugfix. Bind to right context.

JC Brand 9 ani în urmă
părinte
comite
6550544b41
2 a modificat fișierele cu 10 adăugiri și 4 ștergeri
  1. 8 3
      docs/CHANGES.md
  2. 2 1
      src/converse-rosterview.js

+ 8 - 3
docs/CHANGES.md

@@ -1,11 +1,16 @@
 # Changelog
 
+## 1.0.2 (2016-05-24)
+
+- Bugfix. Bind `sendPresence` to the right context. Bug that slipped in during
+  the release of `1.0.1`. [jcbrand]
+
 ## 1.0.1 (2016-05-24)
 
-- Bugfix. Roster filter sometimes gets hidden when it shouldn't.
-- Chat boxes weren't being initialized due to typo.
+- Bugfix. Roster filter sometimes gets hidden when it shouldn't. [jcbrand]
+- Chat boxes weren't being initialized due to typo. [jcbrand]
 - Flush request queue just after connection. Solves a problem with PubSub and
-  Prosody, whereby BOSH HTTP responses weren't being received.
+  Prosody, whereby BOSH HTTP responses weren't being received. [jcbrand]
 
 ## 1.0.0 (2016-05-03)
 

+ 2 - 1
src/converse-rosterview.js

@@ -292,7 +292,8 @@
                                          * fetching the roster we are ready to receive presence
                                          * updates from our contacts.
                                          */
-                                        converse.roster.fetchFromServer(converse.xmppstatus.sendPresence);
+                                        converse.roster.fetchFromServer(
+                                                converse.xmppstatus.sendPresence.bind(converse.xmppstatus));
                                     } else if (converse.send_initial_presence) {
                                         /* We're not going to fetch the roster again because we have
                                          * it already cached in sessionStorage, but we still need to