fixed R swipe highlighting to work when mid-gen

This commit is contained in:
RossAsscends
2023-03-18 23:24:18 +09:00
parent 1317889dc4
commit 4d7c776ecd

View File

@ -2706,7 +2706,7 @@ function showSwipeButtons() {
currentMessage.children('.swipe_right').css('opacity', '0.3'); currentMessage.children('.swipe_right').css('opacity', '0.3');
} }
//console.log((chat[chat.length - 1])); //console.log((chat[chat.length - 1]));
if (is_send_press === false && (chat[chat.length - 1].swipes.length - swipeId) === 1) { if ((chat[chat.length - 1].swipes.length - swipeId) === 1) {
console.log('highlighting R swipe'); console.log('highlighting R swipe');
currentMessage.children('.swipe_right').css('opacity', '0.7'); currentMessage.children('.swipe_right').css('opacity', '0.7');
} }