Clear preview on command

This commit is contained in:
Noel Németh 2022-06-19 19:48:40 +02:00
parent 7fe4334c61
commit 47f28a3b8e
1 changed files with 1 additions and 1 deletions

View File

@ -31,6 +31,7 @@ public class ChatMessageListener {
} else {
Messenger.sendRejectionMessage(player);
}
player.setLastPreviewedMessage(null);
}
public static void chatMessageListener(ClientChatMessagePacket packet, Player player) {
@ -68,7 +69,6 @@ public class ChatMessageListener {
}
} else {
// There is no way the message got modified, send it with the original signature
// TODO Should we handle poor design where the signature got altered?
Messenger.sendSignedMessage(event.getRecipients(), event.getSender(), event.getMessage(),
event.getSignature(), event.getChatType());
}