Add anti noforward (#10)
This commit is contained in:
parent
38601a79ec
commit
37690d8f3f
1 changed files with 1 additions and 0 deletions
|
@ -30,6 +30,7 @@ public class MainHook implements IXposedHookLoadPackage {
|
|||
try {
|
||||
Class<?> messagesControllerClass = XposedHelpers.findClass("org.telegram.messenger.MessagesController", lpparam.classLoader);
|
||||
XposedBridge.hookAllMethods(messagesControllerClass, "getSponsoredMessages", XC_MethodReplacement.returnConstant(null));
|
||||
XposedBridge.hookAllMethods(messagesControllerClass, "isChatNoForwards", XC_MethodReplacement.returnConstant(false));
|
||||
} catch (Throwable ignored) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue