From 61e35dd68a47f2e95989a0f528195f167025aae2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 10 Jun 2021 18:57:57 +0200 Subject: [PATCH] Bump direct message unread priority --- components/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/app.js b/components/app.js index b6cea74..8cacbfd 100644 --- a/components/app.js +++ b/components/app.js @@ -366,13 +366,14 @@ export default class App extends Component { let msgUnread = Unread.NONE; if ((msg.command == "PRIVMSG" || msg.command == "NOTICE") && !isRead) { + let target = msg.params[0]; let text = msg.params[1]; let kind; if (msg.isHighlight) { msgUnread = Unread.HIGHLIGHT; kind = "highlight"; - } else if (client.isMyNick(bufName)) { + } else if (client.isMyNick(target)) { msgUnread = Unread.HIGHLIGHT; kind = "private message"; } else {