feat(web): session list status indicators (attention + scheduled) (#699)

This commit is contained in:
HeavyGee
2026-05-29 15:43:21 +08:00
committed by GitHub
parent 7457a8fc32
commit ec3722aba9
33 changed files with 910 additions and 37 deletions
+4
View File
@@ -176,6 +176,10 @@ export class SyncEngine {
return this.sessionCache.getSessionsByNamespace(namespace)
}
getFutureScheduledMessageCounts(sessionIds: string[], now: number = Date.now()): Map<string, number> {
return this.store.messages.countFutureScheduledBySessionIds(sessionIds, now)
}
getSession(sessionId: string): Session | undefined {
return this.sessionCache.getSession(sessionId) ?? this.sessionCache.refreshSession(sessionId) ?? undefined
}