Update uYouPlus.xm

This commit is contained in:
aricloverGitHub (INACTIVE) 2024-12-08 15:46:01 -06:00 committed by GitHub
parent d1d29e3fe3
commit e68f472e07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,7 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
return YES; return YES;
} }
if (findCell((ASNodeController *)child, identifiers)) { if (findCell((ASNodeController *)child, identifiers)) { // Cast to ASNodeController
return YES; return YES;
} }
} }
@ -85,14 +85,6 @@ static BOOL findCell(ASNodeController *nodeController, NSArray <NSString *> *ide
ASCellNode *node = [element node]; ASCellNode *node = [element node];
ASNodeController *nodeController = [node controller]; ASNodeController *nodeController = [node controller];
NSArray *identifiers = @[
@"id.video.share.button",
@"id.video.remix.button",
@"Thanks",
@"clip_button.eml",
@"id.ui.add_to.offline.button"
];
if (IS_ENABLED(@"hideShareButton_enabled") && findCell(nodeController, @[@"id.video.share.button"])) { if (IS_ENABLED(@"hideShareButton_enabled") && findCell(nodeController, @[@"id.video.share.button"])) {
return CGSizeZero; return CGSizeZero;
} }