diff --git a/iosApp/Source/Settings/AddFeed/AddFeedScreen.swift b/iosApp/Source/Settings/AddFeed/AddFeedScreen.swift index a30a60d6..cb9f2212 100644 --- a/iosApp/Source/Settings/AddFeed/AddFeedScreen.swift +++ b/iosApp/Source/Settings/AddFeed/AddFeedScreen.swift @@ -137,7 +137,7 @@ struct AddFeedScreen: View { for try await state in stream { switch state { case let addedState as FeedAddedState.FeedAdded: - self.addFeedViewModel.clearAddDoneState() +// self.addFeedViewModel.clearAddDoneState() self.appState.snackbarQueue.append( SnackbarData( title: addedState.message.localized(), diff --git a/shared/src/commonMain/kotlin/com/prof18/feedflow/domain/feed/retriever/FeedRetrieverRepository.kt b/shared/src/commonMain/kotlin/com/prof18/feedflow/domain/feed/retriever/FeedRetrieverRepository.kt index 871ec7a3..0374c6de 100644 --- a/shared/src/commonMain/kotlin/com/prof18/feedflow/domain/feed/retriever/FeedRetrieverRepository.kt +++ b/shared/src/commonMain/kotlin/com/prof18/feedflow/domain/feed/retriever/FeedRetrieverRepository.kt @@ -261,6 +261,7 @@ internal class FeedRetrieverRepository( ), ) databaseHelper.insertFeedItems(feedItems, currentTimestamp) + updateMutableState.update { FinishedFeedUpdateStatus } getFeeds() } diff --git a/shared/src/commonMain/kotlin/com/prof18/feedflow/presentation/AddFeedViewModel.kt b/shared/src/commonMain/kotlin/com/prof18/feedflow/presentation/AddFeedViewModel.kt index c416aa37..140edef8 100644 --- a/shared/src/commonMain/kotlin/com/prof18/feedflow/presentation/AddFeedViewModel.kt +++ b/shared/src/commonMain/kotlin/com/prof18/feedflow/presentation/AddFeedViewModel.kt @@ -91,12 +91,6 @@ class AddFeedViewModel internal constructor( } } - fun clearAddDoneState() { - scope.launch { - feedAddedMutableState.emit(FeedAddedState.FeedNotAdded) - } - } - fun onExpandCategoryClick() { categoriesMutableState.update { state -> state.copy(isExpanded = state.isExpanded.not())