Bump direct message unread priority

This commit is contained in:
Simon Ser 2021-06-10 18:57:57 +02:00
parent e56deb35c9
commit 61e35dd68a

View File

@ -366,13 +366,14 @@ export default class App extends Component {
let msgUnread = Unread.NONE; let msgUnread = Unread.NONE;
if ((msg.command == "PRIVMSG" || msg.command == "NOTICE") && !isRead) { if ((msg.command == "PRIVMSG" || msg.command == "NOTICE") && !isRead) {
let target = msg.params[0];
let text = msg.params[1]; let text = msg.params[1];
let kind; let kind;
if (msg.isHighlight) { if (msg.isHighlight) {
msgUnread = Unread.HIGHLIGHT; msgUnread = Unread.HIGHLIGHT;
kind = "highlight"; kind = "highlight";
} else if (client.isMyNick(bufName)) { } else if (client.isMyNick(target)) {
msgUnread = Unread.HIGHLIGHT; msgUnread = Unread.HIGHLIGHT;
kind = "private message"; kind = "private message";
} else { } else {