Observe session database to be able to detect new user and removed user.
This commit is contained in:
parent
62db96476d
commit
c52ad084e9
7 changed files with 191 additions and 6 deletions
|
|
@ -30,6 +30,10 @@ class InMemorySessionStore : SessionStore {
|
|||
return sessionDataFlow.map { it != null }
|
||||
}
|
||||
|
||||
override fun sessionsFlow(): Flow<List<SessionData>> {
|
||||
return sessionDataFlow.map { listOfNotNull(it) }
|
||||
}
|
||||
|
||||
override suspend fun storeData(sessionData: SessionData) {
|
||||
sessionDataFlow.value = sessionData
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue