Skip to content

Commit

Permalink
feat: confirm follow for suggested friends in story section
Browse files Browse the repository at this point in the history
  • Loading branch information
SoCuul committed Mar 31, 2024
1 parent f4a73ec commit 87e07cd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Features/Confirm/FollowConfirm.x
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,17 @@
return %orig;
}
}
%end

// Follow button on suggested friends (in story section)
%hook IGStorySectionController
- (void)followButtonTapped:(id)arg1 cell:(id)arg2 {
if ([BHIManager followConfirmation]) {
NSLog(@"[BHInsta] Confirm follow triggered");

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

0 comments on commit 87e07cd

Please sign in to comment.