xP: indicate hidden buffer lines
This commit is contained in:
@@ -580,13 +580,20 @@ let Buffer = {
|
||||
return m('.buffer')
|
||||
|
||||
let lastDateMark = undefined
|
||||
let squashing = false
|
||||
let markBefore = b.lines.length
|
||||
- b.newMessages - b.newUnimportantMessages
|
||||
b.lines.forEach((line, i) => {
|
||||
if (i == markBefore)
|
||||
lines.push(m('.unread'))
|
||||
if (line.isUnimportant && b.hideUnimportant)
|
||||
|
||||
if (!line.isUnimportant || !b.hideUnimportant) {
|
||||
squashing = false
|
||||
} else if (squashing) {
|
||||
return
|
||||
} else {
|
||||
squashing = true
|
||||
}
|
||||
|
||||
let date = new Date(line.when)
|
||||
let dateMark = date.toLocaleDateString()
|
||||
@@ -594,6 +601,11 @@ let Buffer = {
|
||||
lines.push(m('.date', {}, dateMark))
|
||||
lastDateMark = dateMark
|
||||
}
|
||||
if (squashing) {
|
||||
lines.push(m('.time.hidden'))
|
||||
lines.push(m('.content'))
|
||||
return
|
||||
}
|
||||
|
||||
let attrs = {}
|
||||
if (line.leaked)
|
||||
|
||||
Reference in New Issue
Block a user