From 58bbc58ee10f2a6ba5ce2debafcd77bbb944159a Mon Sep 17 00:00:00 2001 From: thyttan <6uuxstm66@mozmail.comā©> Date: Thu, 2 Jan 2025 03:55:49 +0100 Subject: [PATCH] messagegui: small refactor --- apps/messagegui/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/messagegui/app.js b/apps/messagegui/app.js index 3b30017c4d..6ff94454ef 100644 --- a/apps/messagegui/app.js +++ b/apps/messagegui/app.js @@ -373,7 +373,8 @@ function showMessagesScroller(msg, persist, alreadyProcessed) { let msgSelect; let titleLinesInitials = [titleLines[0]]; for (let i=1; i 1) {titleLinesInitials.push(titleLines[i]);} + if (titleLines[i]-titleLines[i-1] === 1) {continue;} + titleLinesInitials.push(titleLines[i]); } for (let i=titleLines.length-1; i>=0 ; i--) { if (scrollIdx>=titleLinesInitials[i]) {