Merge pull request #1748 from matrix-org/luke/fix-manually-ordered-custom-tagged-rooms
If a tag is unrecognised, assume manual ordering
This commit is contained in:
commit
e0d598fb19
1 changed files with 4 additions and 3 deletions
|
@ -176,12 +176,13 @@ class RoomListStore extends Store {
|
||||||
listOrders[order].forEach((listKey) => {
|
listOrders[order].forEach((listKey) => {
|
||||||
let comparator;
|
let comparator;
|
||||||
switch (order) {
|
switch (order) {
|
||||||
case "manual":
|
|
||||||
comparator = this._getManualComparator(listKey, optimisticRequest);
|
|
||||||
break;
|
|
||||||
case "recent":
|
case "recent":
|
||||||
comparator = this._recentsComparator;
|
comparator = this._recentsComparator;
|
||||||
break;
|
break;
|
||||||
|
case "manual":
|
||||||
|
default:
|
||||||
|
comparator = this._getManualComparator(listKey, optimisticRequest);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
lists[listKey].sort(comparator);
|
lists[listKey].sort(comparator);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue