stream-feed-flutter icon indicating copy to clipboard operation
stream-feed-flutter copied to clipboard

keepHistory parameter is missing from unfollowFeed in feed_bloc.dart (0.8.0)

Open widike opened this issue 3 years ago • 0 comments

It looks like the function "unfollowFeed" in "stream_feed_flutter_code-0.8.0./lib/src/bloc/feed_bloc.dart" is missing the optional parameter "bool keepHistory":

/// Unfollows the given [unfolloweeId] id. Future unfollowFeed({ String unfollowerFeedGroup = 'timeline', String unfolloweeFeedGroup = 'user', required String unfolloweeId, }) async { final unfollowerFeed = client.flatFeed(unfollowerFeedGroup); final unfolloweeFeed = client.flatFeed(unfolloweeFeedGroup, unfolloweeId); await unfollowerFeed.unfollow(unfolloweeFeed); }

It should look like this:

/// Unfollows the given [unfolloweeId] id. Future unfollowFeed({ String unfollowerFeedGroup = 'timeline', String unfolloweeFeedGroup = 'user', required String unfolloweeId, bool keepHistory = false, }) async { final unfollowerFeed = client.flatFeed(unfollowerFeedGroup); final unfolloweeFeed = client.flatFeed(unfolloweeFeedGroup, unfolloweeId); await unfollowerFeed.unfollow(unfolloweeFeed, keepHistory); }

I would appreciate a fix.

widike avatar Sep 09 '22 18:09 widike