Commit a4eb622a authored by JC Brand's avatar JC Brand

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

Updates #723, #734
parent 1b434dbe
......@@ -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')) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment