Skip to content

Commit

Permalink
match who-to-follow carousel on newer client
Browse files Browse the repository at this point in the history
  • Loading branch information
haxibami committed Sep 19, 2024
1 parent 1b91395 commit c503c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tweak.x
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static void batchSwizzlingOnClass(Class cls, NSArray<NSString*>*origSelectors, I

if ([self.adDisplayLocation isEqualToString:@"PROFILE_TWEETS"]) {
if ([BHTManager hideWhoToFollow]) {
if ([class_name isEqualToString:@"T1URTTimelineUserItemViewModel"] || [class_name isEqualToString:@"TwitterURT.URTModuleHeaderViewModel"] || [class_name isEqualToString:@"TwitterURT.URTModuleFooterViewModel"]) {
if ([class_name isEqualToString:@"T1URTTimelineUserItemViewModel"] || [class_name isEqualToString:@"T1TwitterSwift.URTTimelineCarouselViewModel"] || [class_name isEqualToString:@"TwitterURT.URTModuleHeaderViewModel"] || [class_name isEqualToString:@"TwitterURT.URTModuleFooterViewModel"]) {
[_orig setHidden:true];
}
}
Expand Down Expand Up @@ -338,7 +338,7 @@ static void batchSwizzlingOnClass(Class cls, NSArray<NSString*>*origSelectors, I

if ([self.adDisplayLocation isEqualToString:@"PROFILE_TWEETS"]) {
if ([BHTManager hideWhoToFollow]) {
if ([class_name isEqualToString:@"T1URTTimelineUserItemViewModel"] || [class_name isEqualToString:@"TwitterURT.URTModuleHeaderViewModel"] || [class_name isEqualToString:@"TwitterURT.URTModuleFooterViewModel"]) {
if ([class_name isEqualToString:@"T1URTTimelineUserItemViewModel"] || [class_name isEqualToString:@"T1TwitterSwift.URTTimelineCarouselViewModel"] || [class_name isEqualToString:@"TwitterURT.URTModuleHeaderViewModel"] || [class_name isEqualToString:@"TwitterURT.URTModuleFooterViewModel"]) {
return 0;
}
}
Expand Down

0 comments on commit c503c25

Please sign in to comment.