Rename method storeData to addSession.
This commit is contained in:
parent
95ce40406b
commit
65d682f8ca
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