File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
app/src/main/java/com/wmods/wppenhacer/xposed/core/devkit Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1809,10 +1809,11 @@ public static synchronized Class loadCachedMessageStore(ClassLoader loader) thro
1809
1809
1810
1810
public static synchronized Class loadAbstractMediaMessageClass (ClassLoader loader ) throws Exception {
1811
1811
return UnobfuscatorCache .getInstance ().getClass (loader , () -> {
1812
- var fMessageClass = findFirstClassUsingStrings (loader , StringMatchType .Contains , "static.whatsapp.net/downloadable?category=PSA" );
1813
- if (fMessageClass == null )
1812
+ var fmessage = loadFMessageClass (loader );
1813
+ var classList = dexkit .findClass (FindClass .create ().matcher (ClassMatcher .create ().addUsingString ("first_viewed_timestamp" ).superClass (fmessage .getName ())));
1814
+ if (classList .isEmpty ())
1814
1815
throw new RuntimeException ("AbstractMediaMessage class not found" );
1815
- return fMessageClass ;
1816
+ return classList . get ( 0 ). getInstance ( loader ) ;
1816
1817
});
1817
1818
}
1818
1819
You can’t perform that action at this time.
0 commit comments