Skip to content

Commit 58bbc58

Browse files
author
thyttan
committed
messagegui: small refactor
1 parent 59c0087 commit 58bbc58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/messagegui/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,8 @@ function showMessagesScroller(msg, persist, alreadyProcessed) {
373373
let msgSelect;
374374
let titleLinesInitials = [titleLines[0]];
375375
for (let i=1; i<titleLines.length; i++) {
376-
if (titleLines[i]-titleLines[i-1] > 1) {titleLinesInitials.push(titleLines[i]);}
376+
if (titleLines[i]-titleLines[i-1] === 1) {continue;}
377+
titleLinesInitials.push(titleLines[i]);
377378
}
378379
for (let i=titleLines.length-1; i>=0 ; i--) {
379380
if (scrollIdx>=titleLinesInitials[i]) {

0 commit comments

Comments
 (0)