File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
java/com/wmods/wppenhacer/xposed/features/privacy Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1010import com .wmods .wppenhacer .xposed .features .customization .HideSeenView ;
1111import com .wmods .wppenhacer .xposed .utils .ReflectionUtils ;
1212
13+ import java .lang .reflect .Method ;
14+
1315import de .robv .android .xposed .XC_MethodHook ;
1416import de .robv .android .xposed .XSharedPreferences ;
1517import de .robv .android .xposed .XposedBridge ;
@@ -45,7 +47,7 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
4547 var privacy = CustomPrivacy .getJSON (number );
4648 var customHideReceipt = privacy .optBoolean ("HideReceipt" , hideReceipt );
4749 var customHideRead = privacy .optBoolean ("HideSeen" , hideread );
48- var msgTypeIdx = ReflectionUtils .findIndexOfType (param .args , String .class );
50+ var msgTypeIdx = ReflectionUtils .findIndexOfType ((( Method ) param .method ). getParameterTypes () , String .class );
4951 if (param .args [msgTypeIdx ] != "sender" && (customHideReceipt || ghostmode )) {
5052 if (!ReflectionUtils .isCalledFromMethod (method2 ) && ReflectionUtils .isCalledFromMethod (mInChat ) && !customHideRead ) {
5153 return ;
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
106106 protected void beforeHookedMethod (MethodHookParam param ) throws Throwable {
107107 if (ReflectionUtils .isCalledFromMethod (outsideMethod ) || !ReflectionUtils .isCalledFromMethod (hideViewInChatMethod ))
108108 return ;
109- var msgTypeIdx = ReflectionUtils .findIndexOfType (param .args , String .class );
109+ var msgTypeIdx = ReflectionUtils .findIndexOfType ((( Method ) param .method ). getParameterTypes () , String .class );
110110 if (!Objects .equals ("read" , param .args [msgTypeIdx ])) return ;
111111 var jid = WppCore .getCurrentRawJID ();
112112 var number = WppCore .stripJID (jid );
Original file line number Diff line number Diff line change 4040 <string name =" novaconfig" >New Settings Style</string >
4141 <string name =" novaconfig_sum" >Enable the new settings style, with profile photo on home screen toolbar</string >
4242 <string name =" novofiltro" >Search Functions</string >
43- <string name =" novofiltro_sum" >Choose between Search Icon, Search Bar, or No Search (Enable Function for Disable Meta AI) </string >
43+ <string name =" novofiltro_sum" >Choose between Search Icon, Search Bar, or No Search</string >
4444 <string name =" menuwicon" >Menu Icons</string >
4545 <string name =" menuwicon_sum" >Add icons next to menu options across the app</string >
4646 <string name =" freezelastseen" >Freeze Last Seen</string >
You can’t perform that action at this time.
0 commit comments