mirror of
https://github.com/faroukbmiled/RyukGram.git
synced 2026-08-17 08:30:31 +02:00
modded scinsta with additional features and fixes for recent instagram version
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
#import "../../Utils.h"
|
||||
|
||||
%hook IGDirectNotesTrayRowCell
|
||||
- (id)listAdapterObjects {
|
||||
NSArray *originalObjs = %orig();
|
||||
NSMutableArray *filteredObjs = [NSMutableArray arrayWithCapacity:[originalObjs count]];
|
||||
|
||||
for (id obj in originalObjs) {
|
||||
BOOL shouldHide = NO;
|
||||
|
||||
if ([SCIUtils getBoolPref:@"hide_friends_map"]) {
|
||||
|
||||
if ([obj isKindOfClass:%c(IGDirectNotesTrayUserViewModel)]) {
|
||||
|
||||
if ([[obj valueForKey:@"notePk"] isEqualToString:@"friends_map"]) {
|
||||
NSLog(@"[SCInsta] Hiding friends map");
|
||||
|
||||
shouldHide = YES;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Populate new objs array
|
||||
if (!shouldHide) {
|
||||
[filteredObjs addObject:obj];
|
||||
}
|
||||
}
|
||||
|
||||
return [filteredObjs copy];
|
||||
}
|
||||
%end
|
||||
Reference in New Issue
Block a user