mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 10:32:34 +00:00
Fix error.
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ class InMemorySessionStore(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun getSession(sessionId: String): SessionData? {
|
override suspend fun getSession(sessionId: String): SessionData? {
|
||||||
return sessionDataListFlow.value.first { it.userId == sessionId }
|
return sessionDataListFlow.value.firstOrNull { it.userId == sessionId }
|
||||||
}
|
}
|
||||||
|
|
||||||
override suspend fun getAllSessions(): List<SessionData> {
|
override suspend fun getAllSessions(): List<SessionData> {
|
||||||
|
|||||||
Reference in New Issue
Block a user