File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
app/src/main/java/com/wmods/wppenhacer/xposed/features/privacy Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,15 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
5353 return ;
5454 }
5555 var lid = (String ) XposedHelpers .getObjectField (sendReadReceiptJob , "jid" );
56- var userJid = new FMessageWpp .UserJid (lid );
57- if (userJid .isNull ()) return ;
56+ FMessageWpp .UserJid userJid = null ;
57+ try {
58+ userJid = new FMessageWpp .UserJid (lid );
59+ if (userJid .isNull ()) return ;
60+ } catch (Throwable e ) {
61+ // WhatsApp crashes when attempting to create UserJid from MeJid or LidMeJid
62+ // and this issue can be ignored since we don't need to hide something from ourself
63+ return ;
64+ }
5865 var privacy = CustomPrivacy .getJSON (userJid .getPhoneNumber ());
5966
6067 var customHideRead = privacy .optBoolean ("HideSeen" , hideread );
You can’t perform that action at this time.
0 commit comments