2222import com .wmods .wppenhacer .xposed .core .components .FMessageWpp ;
2323import com .wmods .wppenhacer .xposed .core .devkit .Unobfuscator ;
2424import com .wmods .wppenhacer .xposed .core .devkit .UnobfuscatorCache ;
25+ import com .wmods .wppenhacer .xposed .utils .DebugUtils ;
2526import com .wmods .wppenhacer .xposed .utils .ReflectionUtils ;
2627import com .wmods .wppenhacer .xposed .utils .ResId ;
2728import com .wmods .wppenhacer .xposed .utils .Utils ;
@@ -138,7 +139,9 @@ public static Object getPhoneJidFromUserJid(Object lid) {
138139 try {
139140 var rawString = (String ) XposedHelpers .callMethod (lid , "getRawString" );
140141 if (rawString == null || !rawString .contains ("@lid" )) return lid ;
141- var result = ReflectionUtils .callMethod (convertLidToJid , mWaJidMapRepository , lid );
142+ rawString = rawString .replaceFirst ("\\ .[\\ d:]+@" , "@" );
143+ var newUser = WppCore .createUserJid (rawString );
144+ var result = ReflectionUtils .callMethod (convertLidToJid , mWaJidMapRepository , newUser );
142145 return result == null ? lid : result ;
143146 } catch (Exception e ) {
144147 XposedBridge .log (e );
@@ -151,7 +154,9 @@ public static Object getUserJidFromPhoneJid(Object userJid) {
151154 try {
152155 var rawString = (String ) XposedHelpers .callMethod (userJid , "getRawString" );
153156 if (rawString == null || rawString .contains ("@lid" )) return userJid ;
154- var result = ReflectionUtils .callMethod (convertJidToLid , mWaJidMapRepository , userJid );
157+ rawString = rawString .replaceFirst ("\\ .[\\ d:]+@" , "@" );
158+ var newUser = WppCore .createUserJid (rawString );
159+ var result = ReflectionUtils .callMethod (convertJidToLid , mWaJidMapRepository , newUser );
155160 return result == null ? userJid : result ;
156161 } catch (Exception e ) {
157162 XposedBridge .log (e );
0 commit comments