Skip to content

Commit

Permalink
Add anti noforward (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry-ZHR authored Dec 14, 2021
1 parent 38601a7 commit 37690d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/com/shatyuka/killergram/MainHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public void handleLoadPackage(final XC_LoadPackage.LoadPackageParam lpparam) {
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) {
}
}
Expand Down

0 comments on commit 37690d8

Please sign in to comment.