Disable “YTShareRequestViewController“

This commit is contained in:
arichornlover 2024-06-26 12:54:24 -05:00 committed by GitHub
parent 309d426b57
commit 36bf653b3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -148,12 +148,14 @@ static BOOL showNativeShareSheet(NSString *serializedShareEntity) {
/* -------------------- iPad Layout -------------------- */
/*
%hook YTShareRequestViewController
- (id)initWithService:(id)_service parentResponder:(id)_parentResponder {
// disable the default share sheet behavior and force the app to call [YTAccountScopedCommandRouter handleCommand]
return NULL;
}
%end
*/
%hook YTAccountScopedCommandRouter
- (BOOL)handleCommand:(id)command entry:(id)_entry fromView:(id)_fromView sender:(id)_sender completionBlock:(id)_completionBlock {