|
@@ -22,6 +22,11 @@ class Bookmarks extends Collection {
|
|
|
return 'jid';
|
|
|
}
|
|
|
|
|
|
+ constructor() {
|
|
|
+ super([], { comparator: (/** @type {Bookmark} */ b) => b.getDisplayName().toLowerCase() });
|
|
|
+ this.model = Bookmark;
|
|
|
+ }
|
|
|
+
|
|
|
async initialize() {
|
|
|
this.on('add', (bm) =>
|
|
|
this.openBookmarkedRoom(bm)
|
|
@@ -66,11 +71,6 @@ class Bookmarks extends Collection {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- constructor() {
|
|
|
- super([], { comparator: (/** @type {Bookmark} */ b) => b.get('name').toLowerCase() });
|
|
|
- this.model = Bookmark;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* @param {Bookmark} bookmark
|
|
|
*/
|