diff --git a/broker/src/main/java/io/moquette/imhandler/RecallMessageHandler.java b/broker/src/main/java/io/moquette/imhandler/RecallMessageHandler.java index 5484936ed..79197d1b8 100644 --- a/broker/src/main/java/io/moquette/imhandler/RecallMessageHandler.java +++ b/broker/src/main/java/io/moquette/imhandler/RecallMessageHandler.java @@ -34,7 +34,7 @@ public ErrorCode action(ByteBuf ackPayload, String clientID, String fromUser, Pr return ErrorCode.ERROR_CODE_NOT_EXIST; } - publish(fromUser, clientID, message, requestSourceType); + publish(message.getFromUser(), clientID, message, requestSourceType); return errorCode; }