瀏覽代碼

Merge branch 'master' of github.com:emmanuel-florent/converse.js into emmflorent

JC Brand 10 年之前
父節點
當前提交
ed3be3730c
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      converse.js

+ 2 - 2
converse.js

@@ -4052,8 +4052,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();
                         }