Explorar o código

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

Updates #723, #734
JC Brand %!s(int64=8) %!d(string=hai) anos
pai
achega
a4eb622aaa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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')) {