mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
8ae62b8526
@ -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…
Reference in New Issue
Block a user