checkForReservedNick
wasn't called if there aren't any bookmarks.
Updates #723, #734
This commit is contained in:
parent
1b434dbe81
commit
a4eb622aaa
@ -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')) {
|
||||||
|
Loading…
Reference in New Issue
Block a user