From 80fee31f2cff42f96f3e16a16651c0bf82fd85a4 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 24 Jun 2020 17:46:43 +0200 Subject: [PATCH] Fix unread indicator not showing up --- components/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/app.js b/components/app.js index d2392b9..a122a34 100644 --- a/components/app.js +++ b/components/app.js @@ -114,16 +114,16 @@ export default class App extends Component { msg.tags["time"] = `${YYYY}-${MM}-${DD}T${hh}:${mm}:${ss}.${sss}Z`; } - var unread = Unread.NONE; + var msgUnread = Unread.NONE; if (msg.command == "PRIVMSG" || msg.command == "NOTICE") { - unread = Unread.MESSAGE; + msgUnread = Unread.MESSAGE; } this.createBuffer(bufName); this.setBufferState(bufName, (buf, state) => { var unread = buf.unread; if (state.activeBuffer != buf.name) { - unread = Unread.union(buf.unread, unread); + unread = Unread.union(unread, msgUnread); } return { messages: buf.messages.concat(msg),