Updated on 2026-08-14
This commit is contained in:
parent
a4e960106e
commit
c0fb9e8bdb
8 changed files with 24 additions and 14 deletions
|
|
@ -14,7 +14,9 @@ private fun internalReduce(action: Action, state: AppState): HomeState {
|
|||
when (action) {
|
||||
is HomeAction.InsertStory -> {
|
||||
state = state.copy(
|
||||
stories = listOf(action.story) + state.stories,
|
||||
stories = state.stories.toMutableList().apply {
|
||||
add(action.position, action.story)
|
||||
},
|
||||
)
|
||||
}
|
||||
is HomeAction.ScanInProgress -> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue