Procházet zdrojové kódy

`checkForReservedNick` wasn't called if there aren't any bookmarks.

Updates #723, #734
JC Brand před 8 roky
rodič
revize
a4eb622aaa
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/converse-bookmarks.js

+ 1 - 1
src/converse-bookmarks.js

@@ -85,7 +85,7 @@
                      * Otherwise delegate to the super method.
                      */
                     if (_.isUndefined(converse.bookmarks)) {
-                        return;
+                        return this.__super__.checkForReservedNick.apply(this, arguments);
                     }
                     var model = converse.bookmarks.findWhere({'jid': this.model.get('jid')});
                     if (!_.isUndefined(model) && model.get('nick')) {