Don't trigger "Send" to continue if pending file attachments

Fixes #2763
This commit is contained in:
Cohee 2024-09-08 19:15:50 +03:00
parent f5873aec25
commit 3bf801aeee
1 changed files with 1 additions and 0 deletions

View File

@ -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 &&