Skip to content

Commit

Permalink
fix: no recent searches now works in latest insta version
Browse files Browse the repository at this point in the history
  • Loading branch information
SoCuul committed May 12, 2024
1 parent 35f3e9c commit 8d2015b
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/Features/General/NoRecentSearches.x
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,23 @@

// Most in-app search bars
%hook IGRecentSearchStore
- (id)initWithDiskManager:(id)arg1 recentSearchStoreConfiguration:(id)arg2 {
if ([SCIManager noRecentSearches]) {
NSLog(@"[SCInsta] Disabling recent searches");

return nil;
}

return %orig;
}
- (BOOL)addItem:(id)arg1 {
if ([SCIManager noRecentSearches]) {
NSLog(@"[SCInsta] Disabling recent searches");

return nil;
} else {
return %orig;
}

return %orig;
}
%end

Expand All @@ -21,8 +30,8 @@
NSLog(@"[SCInsta] Disabling recent searches");

return nil;
} else {
return %orig;
}

return %orig;
}
%end

0 comments on commit 8d2015b

Please sign in to comment.