Skip to content

Commit

Permalink
Merge pull request BandarHL#273 from haxibami/feature/add-hide-timeli…
Browse files Browse the repository at this point in the history
…ne-msg
  • Loading branch information
BandarHL authored Oct 22, 2024
2 parents 46e4436 + 964d162 commit 980a37b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Tweak.x
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,12 @@ static void batchSwizzlingOnClass(Class cls, NSArray<NSString*>*origSelectors, I
[_orig setHidden:true];
}
}

if ([BHTManager hidePremiumOffer]) {
if ([class_name isEqualToString:@"T1URTTimelineMessageItemViewModel"]) {
[_orig setHidden:true];
}
}
}

return _orig;
Expand Down Expand Up @@ -391,6 +397,12 @@ static void batchSwizzlingOnClass(Class cls, NSArray<NSString*>*origSelectors, I
return 0;
}
}

if ([BHTManager hidePremiumOffer]) {
if ([class_name isEqualToString:@"T1URTTimelineMessageItemViewModel"]) {
return 0;
}
}
}

return %orig;
Expand Down

0 comments on commit 980a37b

Please sign in to comment.