Session database: add count query.

This commit is contained in:
Benoit Marty
2025-11-04 15:25:13 +01:00
parent 8a4d0c7bee
commit 85c9fd916b
5 changed files with 27 additions and 0 deletions
@@ -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()
}