mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat(web): session list status indicators (attention + scheduled) (#699)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user