File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
app/src/main/java/com/wmods/wppenhacer/xposed/features/media Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1010import com .wmods .wppenhacer .xposed .core .Feature ;
1111import com .wmods .wppenhacer .xposed .core .WppCore ;
1212import com .wmods .wppenhacer .xposed .core .components .FMessageWpp ;
13+ import com .wmods .wppenhacer .xposed .core .components .WaContactWpp ;
1314import com .wmods .wppenhacer .xposed .core .devkit .Unobfuscator ;
1415import com .wmods .wppenhacer .xposed .utils .ReflectionUtils ;
1516import com .wmods .wppenhacer .xposed .utils .ResId ;
@@ -45,9 +46,10 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
4546 return true ;
4647 }
4748 var field = ReflectionUtils .getFieldByType (subCls , loadProfileInfoField .getDeclaringClass ());
48- var jidObj = ReflectionUtils .getObjectField (loadProfileInfoField , ReflectionUtils .getObjectField (field , param .thisObject ));
49- var userJid = new FMessageWpp .UserJid (jidObj );
50- var file = WppCore .getContactPhotoFile (userJid .getPhoneRawString ());
49+ var fieldObj = ReflectionUtils .getObjectField (field , param .thisObject );
50+ var waContact = new WaContactWpp (fieldObj );
51+ var userJid = waContact .getUserJid ();
52+ var file = WppCore .getContactPhotoFile (userJid .getUserRawString ());
5153 String destPath ;
5254 try {
5355 destPath = Utils .getDestination ("Profile Photo" );
You can’t perform that action at this time.
0 commit comments