Skip to content

Commit

Permalink
Dont clear the text box if the message is an additive
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-mabry committed Sep 29, 2024
1 parent 98ce8ca commit 7ef85f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webAO/viewport/utils/handleICSpeaking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export const handle_ic_speaking = async (playerChatMsg: ChatMsg) => {
: client.viewport.getChatmsg().nameplate!;

// Clear out the last message
chatBoxInner.innerText = client.viewport.getTextNow();
if (!client.viewport.getChatmsg().additive) {
chatBoxInner.innerText = client.viewport.getTextNow();
}
nameBoxInner.innerText = displayname;

if (client.viewport.getLastCharacter() !== client.viewport.getChatmsg().name) {
Expand Down

0 comments on commit 7ef85f8

Please sign in to comment.