mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
Merge pull request #4157 from matrix-org/t3chguy/rls
Revert to manual sorting for custom tag rooms
This commit is contained in:
commit
db3721b10b
1 changed files with 4 additions and 3 deletions
|
@ -62,15 +62,16 @@ const getListAlgorithm = (listKey, settingAlgorithm) => {
|
||||||
// apply manual sorting only to m.favourite, otherwise respect the global setting
|
// apply manual sorting only to m.favourite, otherwise respect the global setting
|
||||||
// all the known tags are listed explicitly here to simplify future changes
|
// all the known tags are listed explicitly here to simplify future changes
|
||||||
switch (listKey) {
|
switch (listKey) {
|
||||||
case "m.favourite":
|
|
||||||
return ALGO_MANUAL;
|
|
||||||
case "im.vector.fake.invite":
|
case "im.vector.fake.invite":
|
||||||
case "im.vector.fake.recent":
|
case "im.vector.fake.recent":
|
||||||
case "im.vector.fake.archived":
|
case "im.vector.fake.archived":
|
||||||
case "m.lowpriority":
|
case "m.lowpriority":
|
||||||
case TAG_DM:
|
case TAG_DM:
|
||||||
default:
|
|
||||||
return settingAlgorithm;
|
return settingAlgorithm;
|
||||||
|
|
||||||
|
case "m.favourite":
|
||||||
|
default: // custom-tags
|
||||||
|
return ALGO_MANUAL;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue