Abort Send and Continue while editing a message
| @@ -1885,6 +1885,7 @@ export async function reloadCurrentChat() { | ||
| 1885 | 1885 | export async function sendTextareaMessage() { |
| 1886 | 1886 | if (is_send_press) return; |
| 1887 | 1887 | if (isExecutingCommandsFromChatInput) return; |
| 1888 | + if (this_edit_mes_id) return; // don't proceed if editing a message | |
| 1888 | 1889 | |
| 1889 | 1890 | let generateType; |
| 1890 | 1891 | // "Continue on send" is activated when the user hits "send" (or presses enter) on an empty chat box, and the last |
| @@ -10002,6 +10003,8 @@ jQuery(async function () { | ||
| 10002 | 10003 | } |
| 10003 | 10004 | |
| 10004 | 10005 | else if (id == 'option_continue') { |
| 10006 | + if (this_edit_mes_id) return; // don't proceed if editing a message | |
| 10007 | + | |
| 10005 | 10008 | if (is_send_press == false || fromSlashCommand) { |
| 10006 | 10009 | is_send_press = true; |
| 10007 | 10010 | Generate('continue', buildOrFillAdditionalArgs()); |