Skip to content

Commit

Permalink
Fix issue with deferred comments
Browse files Browse the repository at this point in the history
  • Loading branch information
micahmo committed Feb 1, 2024
1 parent 1fedabe commit 557424e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/post/bloc/post_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,6 @@ class PostBloc extends Bloc<PostEvent, PostState> {
if (!state.hasReachedCommentEnd && state.commentCount == state.postView!.postView.counts.comments) {
emit(state.copyWith(status: state.status, hasReachedCommentEnd: true));
}
if (event.commentParentId != null) {
// If we come here, we've determined that we've already loaded all of the comments.
// But we're currently being asked to load some children.
// Therefore we will treat this as an error.
throw Exception(AppLocalizations.of(GlobalContext.context)!.unableToLoadReplies);
}
return;
}
emit(state.copyWith(status: PostStatus.refreshing, newlyCreatedCommentId: state.newlyCreatedCommentId));

Expand Down

0 comments on commit 557424e

Please sign in to comment.