Commit 8d2788c5 authored by JC Brand's avatar JC Brand

Handle case where there aren't bookmarks

parent abbbca02
...@@ -77,6 +77,9 @@ ...@@ -77,6 +77,9 @@
* for this room, and if so use it. * for this room, and if so use it.
* Otherwise delegate to the super method. * Otherwise delegate to the super method.
*/ */
if (_.isUndefined(converse.bookmarks)) {
return;
}
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')) {
this.join(this.model.get('nick')); this.join(this.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