Fix deleting swipe not clean swipe_info

This commit is contained in:
Wolfsblvt 2024-06-26 02:14:26 +02:00
parent 8034564c3e
commit 071a77fe1a
1 changed files with 3 additions and 0 deletions

View File

@ -10103,6 +10103,9 @@ jQuery(async function () {
if ($('#del_type').val() === 'swipe') {
const swipe_id = chat[this_edit_mes_id]['swipe_id'];
chat[this_edit_mes_id]['swipes'].splice(swipe_id, 1);
if (Array.isArray(chat[this_edit_mes_id]['swipe_info']) && chat[this_edit_mes_id]['swipe_info'].length) {
chat[this_edit_mes_id].swipe_info.splice(swipe_id, 1);
}
if (swipe_id > 0) {
$('.swipe_left:last').click();
} else {