Skip to content

Commit

Permalink
fix: no recent searches still being saved on server-side
Browse files Browse the repository at this point in the history
  • Loading branch information
SoCuul committed Jun 28, 2024
1 parent 581418c commit 24f42bd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Features/General/NoRecentSearches.x
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
#import "../../InstagramHeaders.h"
#import "../../Manager.h"

// Disable logging of searches at server-side
%hook IGSearchEntityRouter
- (id)initWithUserSession:(id)arg1 analyticsModule:(id)arg2 shouldAddToRecents:(BOOL)shouldAddToRecents {
if ([SCIManager noRecentSearches]) {
NSLog(@"[SCInsta] Disabling recent searches");

shouldAddToRecents = false;
}

return %orig(arg1, arg2, shouldAddToRecents);
}
%end

// Most in-app search bars
%hook IGRecentSearchStore
- (id)initWithDiskManager:(id)arg1 recentSearchStoreConfiguration:(id)arg2 {
Expand Down

0 comments on commit 24f42bd

Please sign in to comment.