mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-13 07:48:37 +01:00
Bump direct message unread priority
This commit is contained in:
parent
e56deb35c9
commit
61e35dd68a
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user