mirror of
https://github.com/faroukbmiled/RyukGram.git
synced 2026-06-08 16:33:54 +02:00
33 lines
881 B
Plaintext
33 lines
881 B
Plaintext
#import "../../Utils.h"
|
|
|
|
%hook IGDirectThreadViewController
|
|
- (void)swipeableScrollManagerDidEndDraggingAboveSwipeThreshold:(id)arg1 {
|
|
if ([SCIUtils getBoolPref:@"shh_mode_confirm"]) {
|
|
NSLog(@"[SCInsta] Confirm shh mode triggered");
|
|
|
|
[SCIUtils showConfirmation:^(void) { %orig; }];
|
|
} else {
|
|
return %orig;
|
|
}
|
|
}
|
|
|
|
- (void)shhModeTransitionButtonDidTap:(id)arg1 {
|
|
if ([SCIUtils getBoolPref:@"shh_mode_confirm"]) {
|
|
NSLog(@"[SCInsta] Confirm shh mode triggered");
|
|
|
|
[SCIUtils showConfirmation:^(void) { %orig; }];
|
|
} else {
|
|
return %orig;
|
|
}
|
|
}
|
|
|
|
- (void)messageListViewControllerDidToggleShhMode:(id)arg1 {
|
|
if ([SCIUtils getBoolPref:@"shh_mode_confirm"]) {
|
|
NSLog(@"[SCInsta] Confirm shh mode triggered");
|
|
|
|
[SCIUtils showConfirmation:^(void) { %orig; }];
|
|
} else {
|
|
return %orig;
|
|
}
|
|
}
|
|
%end |