summaryrefslogtreecommitdiff
path: root/xP
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-09-28 16:25:16 +0200
committerPřemysl Eric Janouch <p@janouch.name>2022-09-28 21:20:59 +0200
commit5b57e9b41b3f339e05f1db285131f16c927d1d98 (patch)
tree2f66c0729fce8b7471c271c06c08814a6c3cf568 /xP
parent4d99690b89bda2814b78f01b88b7833296d47717 (diff)
downloadxK-5b57e9b41b3f339e05f1db285131f16c927d1d98.tar.gz
xK-5b57e9b41b3f339e05f1db285131f16c927d1d98.tar.xz
xK-5b57e9b41b3f339e05f1db285131f16c927d1d98.zip
xC/xP: fix unseen message counting
xC: advance unread message counters even with leaked messages, and don't unnecessarily set the highlighted flag. Plus clean up. xP: make leaked non-unimportant messages advance the counter for unimportant messages, so that the buffer doesn't get emboldened.
Diffstat (limited to 'xP')
-rw-r--r--xP/public/xP.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/xP/public/xP.js b/xP/public/xP.js
index 3266063..aabf75a 100644
--- a/xP/public/xP.js
+++ b/xP/public/xP.js
@@ -288,7 +288,7 @@ rpcEventHandlers.set(Relay.Event.BufferLine, e => {
b.lines.push({...line})
if (!(visible || e.leakToActive) ||
b.newMessages || b.newUnimportantMessages) {
- if (line.isUnimportant)
+ if (line.isUnimportant || e.leakToActive)
b.newUnimportantMessages++
else
b.newMessages++