mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
If a tag is unrecognised, assume manual ordering
(as we did previously) Fixes https://github.com/vector-im/riot-web/issues/6135
This commit is contained in:
parent
a0aa3df893
commit
f16bc93fee
@ -176,12 +176,13 @@ class RoomListStore extends Store {
|
||||
listOrders[order].forEach((listKey) => {
|
||||
let comparator;
|
||||
switch (order) {
|
||||
case "manual":
|
||||
comparator = this._getManualComparator(listKey, optimisticRequest);
|
||||
break;
|
||||
case "recent":
|
||||
comparator = this._recentsComparator;
|
||||
break;
|
||||
case "manual":
|
||||
default:
|
||||
comparator = this._getManualComparator(listKey, optimisticRequest);
|
||||
break;
|
||||
}
|
||||
lists[listKey].sort(comparator);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user