Commit 1ef99b3e authored by JC Brand's avatar JC Brand

bookmarks: Handle chat box being passed into `renderBookmarkListElement`

parent 3835ab7a
......@@ -401,6 +401,12 @@
},
renderBookmarkListElement: function (item) {
if (item instanceof _converse.ChatBox) {
item = _.head(this.model.where({'jid': item.get('jid')}));
if (_.isNil(item)) {
return;
}
}
if (_converse.hide_open_bookmarks &&
_converse.chatboxes.where({'jid': item.get('jid')}).length) {
this.removeBookmarkListElement(item);
......
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