mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Add a db query to get all the Sessions.
This commit is contained in:
committed by
Benoit Marty
parent
2135d75712
commit
70de1bd6a0
+4
@@ -38,6 +38,10 @@ class InMemorySessionStore : SessionStore {
|
||||
return sessionDataFlow.value.takeIf { it?.userId == sessionId }
|
||||
}
|
||||
|
||||
override suspend fun getAllSessions(): List<SessionData> {
|
||||
return listOfNotNull(sessionDataFlow.value)
|
||||
}
|
||||
|
||||
override suspend fun getLatestSession(): SessionData? {
|
||||
return sessionDataFlow.value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user