Skip to content

Commit

Permalink
feat: confirm likes for post comment previews
Browse files Browse the repository at this point in the history
  • Loading branch information
SoCuul committed Apr 12, 2024
1 parent 67b6e3f commit 7571fc8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Features/Confirm/LikeConfirm.x
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,17 @@
}
}
%end
%hook IGFeedItemPreviewCommentCell
- (void)_didTapLikeButton {
if ([BHIManager postLikeConfirmation]) {
NSLog(@"[BHInsta] Confirm post like triggered");

[BHIUtils showConfirmation:^(void) { %orig; }];
} else {
return %orig;
}
}
%end

// Liking stories
%hook IGStoryFullscreenDefaultFooterView
Expand Down

0 comments on commit 7571fc8

Please sign in to comment.