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

Updates #723, #734
This commit is contained in:
JC Brand 2016-11-24 09:45:17 +01:00
parent 1b434dbe81
commit a4eb622aaa

View File

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