Skip to content

Commit

Permalink
messagegui: small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
thyttan committed Jan 2, 2025
1 parent 59c0087 commit 58bbc58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/messagegui/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ function showMessagesScroller(msg, persist, alreadyProcessed) {
let msgSelect;
let titleLinesInitials = [titleLines[0]];
for (let i=1; i<titleLines.length; i++) {
if (titleLines[i]-titleLines[i-1] > 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]) {
Expand Down

0 comments on commit 58bbc58

Please sign in to comment.