Skip to content

Commit

Permalink
removed throttle when voting on posts and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hjiangsu committed Jul 23, 2023
1 parent f50b7c1 commit 89e185d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
- Fixed issue where markdown preview was not working when creating a post - contribution from @micahmo
- Fixed broken show link preview option in settings - contribution from @ajsosa
- Fixed issue where swiping on a comment would cause text to overflow on top of the comment indicators - contribution from @ajsosa
- Fixed issue where the app was preventing you from voting or saving multiple things within a short timeframe

## 0.2.1+12 - 2023-07-18
### Added
Expand Down
4 changes: 2 additions & 2 deletions lib/community/bloc/community_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ class CommunityBloc extends Bloc<CommunityEvent, CommunityState> {
);
on<VotePostEvent>(
_votePostEvent,
transformer: throttleDroppable(throttleDuration),
transformer: throttleDroppable(Duration.zero), // Don't give a throttle on vote
);
on<SavePostEvent>(
_savePostEvent,
transformer: throttleDroppable(throttleDuration),
transformer: throttleDroppable(Duration.zero), // Don't give a throttle on save
);
on<ForceRefreshEvent>(
_forceRefreshEvent,
Expand Down
4 changes: 2 additions & 2 deletions lib/post/bloc/post_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ class PostBloc extends Bloc<PostEvent, PostState> {
);
on<VotePostEvent>(
_votePostEvent,
transformer: throttleDroppable(throttleDuration),
transformer: throttleDroppable(Duration.zero), // Don't give a throttle on vote
);
on<SavePostEvent>(
_savePostEvent,
transformer: throttleDroppable(throttleDuration),
transformer: throttleDroppable(Duration.zero), // Don't give a throttle on save
);
on<GetPostCommentsEvent>(
_getPostCommentsEvent,
Expand Down

0 comments on commit 89e185d

Please sign in to comment.