diff --git a/lib/blocs/stories/stories_bloc.dart b/lib/blocs/stories/stories_bloc.dart index d5c713f0..998983b3 100644 --- a/lib/blocs/stories/stories_bloc.dart +++ b/lib/blocs/stories/stories_bloc.dart @@ -96,7 +96,8 @@ class StoriesBloc extends Bloc { storiesToBeDownloaded: state.storiesToBeDownloaded, ), ); - for (final StoryType type in StoryType.values) { + + for (final StoryType type in _preferenceCubit.state.tabs) { add(LoadStories(type: type)); } } @@ -144,13 +145,9 @@ class StoriesBloc extends Bloc { final Map> newStoriesMap = Map>.from(state.storiesByType); newStoriesMap[type] = []; - final Map> newStoryIdsMap = - Map>.from(state.storyIdsByType); - newStoryIdsMap[type] = []; emit( state.copyWith( storiesByType: newStoriesMap, - storyIdsByType: newStoryIdsMap, ), ); }