Session database: add count query.

This commit is contained in:
Benoit Marty 2025-11-04 15:25:13 +01:00
parent 0061b625f1
commit 9070420860
5 changed files with 27 additions and 0 deletions

View file

@ -67,6 +67,10 @@ class InMemorySessionStore(
return sessionDataListFlow.value
}
override suspend fun numberOfSessions(): Int {
return sessionDataListFlow.value.size
}
override suspend fun getLatestSession(): SessionData? {
return sessionDataListFlow.value.firstOrNull()
}