From 3bf801aeee419ae067ae3f6f55c6c8fb2b9e556e Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 8 Sep 2024 19:15:50 +0300 Subject: [PATCH] Don't trigger "Send" to continue if pending file attachments Fixes #2763 --- public/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/script.js b/public/script.js index 372994fb2..ebc6265e9 100644 --- a/public/script.js +++ b/public/script.js @@ -1889,6 +1889,7 @@ export async function sendTextareaMessage() { // message was sent from a character (not the user or the system). const textareaText = String($('#send_textarea').val()); if (power_user.continue_on_send && + !hasPendingFileAttachment() && !textareaText && !selected_group && chat.length &&