Rename method storeData to addSession.
This commit is contained in:
parent
a46b7c27a9
commit
06bcbb8bb8
6 changed files with 11 additions and 11 deletions
|
|
@ -37,7 +37,7 @@ class InMemorySessionStore(
|
|||
|
||||
override fun sessionsFlow(): Flow<List<SessionData>> = sessionDataListFlow.asStateFlow()
|
||||
|
||||
override suspend fun storeData(sessionData: SessionData) {
|
||||
override suspend fun addSession(sessionData: SessionData) {
|
||||
val currentList = sessionDataListFlow.value.toMutableList()
|
||||
currentList.removeAll { it.userId == sessionData.userId }
|
||||
currentList.add(sessionData)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue