Revert to manual sorting for custom tag rooms

pull/21833/head
Michael Telatynski 2020-03-02 11:20:28 +00:00
parent dc3afb3e57
commit 8ec83d4a77
1 changed files with 4 additions and 3 deletions

View File

@ -62,15 +62,16 @@ const getListAlgorithm = (listKey, settingAlgorithm) => {
// apply manual sorting only to m.favourite, otherwise respect the global setting
// all the known tags are listed explicitly here to simplify future changes
switch (listKey) {
case "m.favourite":
return ALGO_MANUAL;
case "im.vector.fake.invite":
case "im.vector.fake.recent":
case "im.vector.fake.archived":
case "m.lowpriority":
case TAG_DM:
default:
return settingAlgorithm;
case "m.favourite":
default: // custom-tags
return ALGO_MANUAL;
}
};