Files
RyukGram/src/Features/Confirm/FollowRequestConfirm.xm
T

22 lines
565 B
Plaintext

#import "../../Utils.h"
%hook IGPendingRequestView
- (void)_onApproveButtonTapped {
if ([SCIUtils getBoolPref:@"follow_request_confirm"]) {
NSLog(@"[SCInsta] Confirm follow request triggered");
[SCIUtils showConfirmation:^(void) { %orig; }];
} else {
return %orig;
}
}
- (void)_onIgnoreButtonTapped {
if ([SCIUtils getBoolPref:@"follow_request_confirm"]) {
NSLog(@"[SCInsta] Confirm follow request triggered");
[SCIUtils showConfirmation:^(void) { %orig; }];
} else {
return %orig;
}
}
%end