edit message button hides on the currently generating swipe

reshows when complete
This commit is contained in:
RossAsscends
2023-03-22 00:48:23 +09:00
parent 2e9a36b0cc
commit afda35876c

View File

@@ -1582,8 +1582,8 @@ async function Generate(type, automatic_trigger, force_name2) {//encode("dsfs").
$("#send_but").css("display", "inline"); $("#send_but").css("display", "inline");
//console.log('runGenerate calling showSwipeBtns pt. 2'); //console.log('runGenerate calling showSwipeBtns pt. 2');
showSwipeButtons(); showSwipeButtons();
$("#loading_mes").css("display", "none"); $("#loading_mes").css("display", "none");
$('.mes_edit:last').show();
}, },
error: function (jqXHR, exception) { error: function (jqXHR, exception) {
@@ -2707,6 +2707,7 @@ $(document).ready(function () {
if (run_generate && !is_send_press && parseInt(chat[chat.length - 1]['swipe_id']) === chat[chat.length - 1]['swipes'].length) { if (run_generate && !is_send_press && parseInt(chat[chat.length - 1]['swipe_id']) === chat[chat.length - 1]['swipes'].length) {
console.log('caught here 2'); console.log('caught here 2');
is_send_press = true; is_send_press = true;
$('.mes_edit:last').hide();
Generate('swipe'); Generate('swipe');
} else { } else {
if (parseInt(chat[chat.length - 1]['swipe_id']) !== chat[chat.length - 1]['swipes'].length) { if (parseInt(chat[chat.length - 1]['swipe_id']) !== chat[chat.length - 1]['swipes'].length) {