Skip to content

Commit

Permalink
Fix PreventUnsendMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
Chipppppppppp committed Jan 19, 2025
1 parent 2b765a2 commit 05d23e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable {
Field typeField = operation.getClass().getDeclaredField("c");
Object type = typeField.get(operation);
if (type.toString().equals("NOTIFIED_DESTROY_MESSAGE")) {
typeField.set(operation, type.getClass().getMethod("valueOf", String.class).invoke(operation, "DUMMY"));
typeField.set(operation, type.getClass().getMethod("valueOf", String.class).invoke(null, "DUMMY"));
} else if (type.toString().equals("RECEIVE_MESSAGE")) {
Object message = operation.getClass().getDeclaredField("j").get(operation);
Map<String, String> contentMetadata = (Map<String, String>) message.getClass().getDeclaredField("k").get(message);
Expand Down

0 comments on commit 05d23e3

Please sign in to comment.