diff --git a/src/snek/static/chat-input.js b/src/snek/static/chat-input.js index c356b20..e089e73 100644 --- a/src/snek/static/chat-input.js +++ b/src/snek/static/chat-input.js @@ -279,8 +279,7 @@ levenshteinDistance(a, b) { app.rpc && typeof app.rpc.updateMessageText === "function" ) { - this.value = this.replaceMentionsWithAuthors(this.value); - app.rpc.updateMessageText(this.messageUid, this.value); + app.rpc.updateMessageText(this.messageUid, this.replaceMentionsWithAuthors(this.value)); } }