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
18091809
18101810 public static synchronized Class loadAbstractMediaMessageClass (ClassLoader loader ) throws Exception {
18111811 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 ())
18141815 throw new RuntimeException ("AbstractMediaMessage class not found" );
1815- return fMessageClass ;
1816+ return classList . get ( 0 ). getInstance ( loader ) ;
18161817 });
18171818 }
18181819
You can’t perform that action at this time.
0 commit comments