mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Observe session database to be able to detect new user and removed user.
This commit is contained in:
committed by
Benoit Marty
parent
7ff72d480c
commit
35c7bffc45
+4
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user