From f8e2730fd6ea6ed822c257f9198f9a00cbb67d85 Mon Sep 17 00:00:00 2001 From: breathingmanually <136247862+breathingmanually@users.noreply.github.com> Date: Tue, 18 Jul 2023 00:57:17 -0300 Subject: [PATCH] Fix parameters not substituted when editing first message --- public/script.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index c6b546ce4..7f0a9a44c 100644 --- a/public/script.js +++ b/public/script.js @@ -5165,7 +5165,10 @@ function messageEditAuto(div) { } async function messageEditDone(div) { - const { mesBlock, text, mes, bias } = updateMessage(div); + let { mesBlock, text, mes, bias } = updateMessage(div); + if (this_edit_mes_id == 0) { + text = substituteParams(text); + } mesBlock.find(".mes_text").empty(); mesBlock.find(".mes_edit_buttons").css("display", "none");