Commit 9167128d authored by JC Brand's avatar JC Brand

Bugfix.

parent 429c320a
...@@ -47,7 +47,7 @@ converse.plugins.add('converse-roomslist', { ...@@ -47,7 +47,7 @@ converse.plugins.add('converse-roomslist', {
_converse.OpenRooms = Backbone.Collection.extend({ _converse.OpenRooms = Backbone.Collection.extend({
comparator (room) { comparator (room) {
if (room.get('bookmarked')) { if (_converse.bookmarks && room.get('bookmarked')) {
const bookmark = _.head(_converse.bookmarks.where({'jid': room.get('jid')})); const bookmark = _.head(_converse.bookmarks.where({'jid': room.get('jid')}));
return bookmark.get('name'); return bookmark.get('name');
} else { } else {
......
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