diff --git a/app/resources/data/template.html b/app/resources/data/template.html index 1d13404..932da6c 100644 --- a/app/resources/data/template.html +++ b/app/resources/data/template.html @@ -1021,10 +1021,11 @@ input { function prevPage() { if (currentPage > 1) { currentPage--; + reachedBottom = false; renderPage(currentPage); } } - + function nextPage() { const totalPages = Math.ceil(chatMessages.length / itemsPerPage); if (currentPage < totalPages) {