Skip to content

Commit b21e2e8

Browse files
authored
Fix Reader failing to clear cached comments if all the comments are deleted (#25482)
1 parent 7f174ad commit b21e2e8

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* [*] Reader: Fix an issue with "Notificaton Settings" showing incorrect state right after subscribing [#25459]
88
* [*] Reader: Fix an issue with "Notificaton Settings" button shown when you are not subscribed [#25459]
99
* [*] Reader: Fix a regression with anchors not working in posts [#25459]
10+
* [*] Reader: Fix an issues with Reader failing to clear cached comments if all the comments are deleted [#25482]
1011
* [*] Reader: Fix an issue with the article view removing autoplay without showing controls [#25468]
1112
* [*] Menus: Fix an issue with footer view in Menu Editing not resizing [#25481]
1213

WordPress/Classes/Services/CommentService.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,10 +1182,6 @@ - (BOOL)mergeHierarchicalComments:(NSArray *)comments forPage:(NSUInteger)page f
11821182
{
11831183
NSParameterAssert(post.managedObjectContext != nil);
11841184

1185-
if (![comments count]) {
1186-
return NO;
1187-
}
1188-
11891185
NSMutableSet<NSNumber *> *visibleCommentIds = [NSMutableSet new];
11901186
NSMutableArray *ancestors = [NSMutableArray array];
11911187
NSMutableArray *commentsToKeep = [NSMutableArray array];

0 commit comments

Comments
 (0)