lydavid / MusicSearch

An Android app for browsing songs, artists, and anything related to them
Apache License 2.0
18 stars 0 forks source link

leaving the screen before this is executed will not actually delete the records #940

Open github-actions[bot] opened 3 weeks ago

github-actions[bot] commented 3 weeks ago

So when the user next undo delete all, they will recover supposedly deleted records

https://github.com/lydavid/MusicSearch/blob/d219eabd85309db71e66c462f885d9d53cc84fe3/shared/feature/history/src/commonMain/kotlin/ly/david/musicsearch/shared/feature/history/internal/History.kt#L76


                            eventSink(HistoryUiEvent.UnMarkAllHistoryForDeletion)
                        }

                        // TODO: leaving the screen before this is executed will not actually delete the records
                        //  So when the user next undo delete all, they will recover supposedly deleted records
                        SnackbarResult.Dismissed -> {
                            eventSink(HistoryUiEvent.DeleteAllHistory)
                        }