From afe3e824b12816a7f66828e121ce96529f249158 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Mon, 11 Dec 2023 21:16:09 +0200 Subject: [PATCH] Unblock left swipe on swipeId overflow. --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 453c23915..31719f63c 100644 --- a/public/script.js +++ b/public/script.js @@ -6527,7 +6527,7 @@ function showSwipeButtons() { const swipeId = chat[chat.length - 1].swipe_id; var swipesCounterHTML = (`${(swipeId + 1)}/${(chat[chat.length - 1].swipes.length)}`); - if (swipeId !== undefined && chat[chat.length - 1].swipes.length > 1) { + if (swipeId !== undefined && (chat[chat.length - 1].swipes.length > 1 || swipeId > 0)) { currentMessage.children('.swipe_left').css('display', 'flex'); } //only show right when generate is off, or when next right swipe would not make a generate happen