Skip to content

Commit

Permalink
Update uYouPlus.xm
Browse files Browse the repository at this point in the history
  • Loading branch information
arichornlover authored Oct 9, 2024
1 parent df0eba4 commit 9b39b2e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Sources/uYouPlus.xm
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,19 @@ YTMainAppControlsOverlayView *controlsOverlayView;
for (ELMPBElement *element in listOptions) {
ELMPBProperties *properties = [element properties];
ELMPBIdentifierProperties *identifierProperties = [properties firstSubmessage];
NSString *identifier = [identifierProperties identifier];
if ([identifier containsString:@"offline_upsell_dialog"]) {
// 19.30.2
if ([identifierProperties respondsToSelector:@selector(identifier)]) {
NSString *identifier = [identifierProperties identifier];
if ([identifier containsString:@"offline_upsell_dialog"]) {
if ([controlsOverlayView respondsToSelector:@selector(uYou)]) {
[controlsOverlayView uYou];
}
return;
}
}
// 19.20.2
NSString *description = [identifierProperties description];
if ([description containsString:@"offline_upsell_dialog"]) {
if ([controlsOverlayView respondsToSelector:@selector(uYou)]) {
[controlsOverlayView uYou];
}
Expand Down

0 comments on commit 9b39b2e

Please sign in to comment.