Display messages with a highlight differently

This commit is contained in:
Simon Ser 2020-08-13 11:58:36 +02:00
parent 917b348992
commit 9cc44fbe98
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
3 changed files with 11 additions and 1 deletions

View file

@ -274,6 +274,8 @@ export default class App extends Component {
msg.key = messagesCount;
messagesCount++;
msg.isHighlight = irc.isHighlight(msg, this.client.nick);
if (!msg.tags) {
msg.tags = {};
}
@ -291,7 +293,7 @@ export default class App extends Component {
var text = msg.params[1];
var kind;
if (irc.isHighlight(msg, this.client.nick)) {
if (msg.isHighlight) {
msgUnread = Unread.HIGHLIGHT;
kind = "highlight";
} else if (target == this.client.nick) {