Remove error log

This commit is contained in:
Shatyuka 2021-11-10 14:17:16 +08:00
parent abb5b232db
commit 8a06e6c411

View file

@ -12,8 +12,7 @@ public class MainHook implements IXposedHookLoadPackage {
try {
Class<?> chatUIActivityClass = XposedHelpers.findClass("org.telegram.ui.ChatActivity", lpparam.classLoader);
XposedBridge.hookAllMethods(chatUIActivityClass, "addSponsoredMessages", XC_MethodReplacement.returnConstant(null));
} catch (Throwable throwable) {
XposedBridge.log("Hook failed for " + lpparam.packageName);
} catch (Throwable ignored) {
}
}
}