From a4eb622aaa432bbd8db35c4a0c8a0fd796f48614 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 24 Nov 2016 09:45:17 +0100 Subject: [PATCH] `checkForReservedNick` wasn't called if there aren't any bookmarks. Updates #723, #734 --- src/converse-bookmarks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converse-bookmarks.js b/src/converse-bookmarks.js index 04cc82285..b8c242a32 100644 --- a/src/converse-bookmarks.js +++ b/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')) {