2
0
Эх сурвалжийг харах

Fix simple type on variable name closes #427

At some point an improbable condition reached a typographic error.
eflorent 10 жил өмнө
parent
commit
fdfd98ac82
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      converse.js

+ 2 - 2
converse.js

@@ -4050,8 +4050,8 @@
                 if (contact instanceof converse.RosterContact) {
                     contact.authorize().subscribe();
                 } else {
-                    // XXX: I don't think this should ever happen
-                    this.addContact(jid, '', [], { 'subscription': 'from' }).done(function (contact) {
+                    // XXX: Happen when subscription retries or roster deleted
+                    this.addContact(bare_jid, '', [], { 'subscription': 'from' }).done(function (contact) {
                         if (contact instanceof converse.RosterContact) {
                             contact.authorize().subscribe();
                         }