From 5b57e9b41b3f339e05f1db285131f16c927d1d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Wed, 28 Sep 2022 16:25:16 +0200 Subject: 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. --- xP/public/xP.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xP') 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++ -- cgit v1.2.3