fix(desktop): session ordered by most recent

This commit is contained in:
Adam 2025-12-18 07:31:54 -06:00 committed by Aiden Cline
commit 51e5bc3e2b
2 changed files with 15 additions and 5 deletions

View file

@ -107,7 +107,7 @@ function createGlobalSync() {
.slice()
.filter((s) => !s.time.archived)
.sort((a, b) => a.id.localeCompare(b.id))
// Include sessions up to the limit, plus any updated in the last hour
// Include up to the limit, plus any updated in the last 4 hours
const sessions = nonArchived.filter((s, i) => {
if (i < store.limit) return true
const updated = new Date(s.time.updated).getTime()