mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 20:38:55 +03:00
tidy up
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
5a31b308cd
commit
f074e85863
1 changed files with 1 additions and 1 deletions
|
@ -55,6 +55,7 @@ export const ALGO_ALPHABETIC = "alphabetic";
|
||||||
export const ALGO_RECENT = "recent";
|
export const ALGO_RECENT = "recent";
|
||||||
|
|
||||||
const CATEGORY_ORDER = [CATEGORY_RED, CATEGORY_GREY, CATEGORY_BOLD, CATEGORY_IDLE];
|
const CATEGORY_ORDER = [CATEGORY_RED, CATEGORY_GREY, CATEGORY_BOLD, CATEGORY_IDLE];
|
||||||
|
|
||||||
const getListAlgorithm = (listKey, settingAlgorithm) => {
|
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
|
||||||
|
@ -743,7 +744,6 @@ class RoomListStore extends Store {
|
||||||
}
|
}
|
||||||
|
|
||||||
_recentsComparator(entryA, entryB, tsOfNewestEventFn) {
|
_recentsComparator(entryA, entryB, tsOfNewestEventFn) {
|
||||||
console.trace("DEBUG recents");
|
|
||||||
const timestampA = tsOfNewestEventFn(entryA.room);
|
const timestampA = tsOfNewestEventFn(entryA.room);
|
||||||
const timestampB = tsOfNewestEventFn(entryB.room);
|
const timestampB = tsOfNewestEventFn(entryB.room);
|
||||||
return timestampB - timestampA;
|
return timestampB - timestampA;
|
||||||
|
|
Loading…
Reference in a new issue