Skip to content

Commit

Permalink
fix: disable story seen functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
SoCuul committed Mar 31, 2024
1 parent fee6c74 commit f4a73ec
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/Features/StoriesAndMessages/DisableStorySeen.x
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
#import "../../InstagramHeaders.h"
#import "../../Manager.h"
#import "../../Tweak.h"

%hook IGStoryViewerViewController
- (void)fullscreenSectionController:(id)arg1 didMarkItemAsSeen:(id)arg2 {
%hook IGStorySeenStateUploader
- (id)initWithUserSessionPK:(id)arg1 networker:(id)arg2 {
if ([BHIManager noSeenReceipt]) {
%orig;
NSLog(@"[BHInsta] Prevented seen receipt from being sent");

// Currently not working (dunno why and im lazy too fix)
/* if (shouldBeSeen) {
shouldBeSeen = false;
} */
return nil;
} else {
return %orig;
}
}

- (id)networker {
if ([BHIManager noSeenReceipt]) {
NSLog(@"[BHInsta] Prevented seen receipt from being sent");

return nil;
} else {
return %orig;
}
Expand Down

0 comments on commit f4a73ec

Please sign in to comment.