Răsfoiți Sursa

Fixes #262 Contact requests not shown if page reloaded.

JC Brand 10 ani în urmă
părinte
comite
ef8082a31d
2 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 2 2
      converse.js
  2. 1 0
      docs/CHANGES.rst

+ 2 - 2
converse.js

@@ -3644,7 +3644,7 @@
                             converse.getVCard(
                                 bare_jid,
                                 $.proxy(function (jid, fullname, img, img_type, url) {
-                                    this.add({
+                                    this.create({
                                         jid: bare_jid,
                                         subscription: 'none',
                                         ask: null,
@@ -3658,7 +3658,7 @@
                                 }, this),
                                 $.proxy(function (jid, iq) {
                                     converse.log("Error while retrieving vcard");
-                                    this.add({
+                                    this.create({
                                         jid: bare_jid,
                                         subscription: 'none',
                                         ask: null,

+ 1 - 0
docs/CHANGES.rst

@@ -17,6 +17,7 @@ Changelog
 * #237 Unable to create room when ``hide_muc_server`` is ``true``. [jcbrand]
 * #238 Rooms are not shown when ``hide_offline_users`` is ``true``. [jcbrand]
 * #251 Non-minified builds for debugging. [jcbrand]
+* #262 Contact requests are not shown if page is reloaded. [jcbrand]
 * #264 Remove unnecessary commas for ie8 compatibility. [Deuteu]
 * #267 Unread messages counter wrongly gets incremented by chat state notifications. [Deuteu]
 * #274 Roster filtering results change with presence changes. [jcbrand]