Always mark own messages as read

This commit is contained in:
Simon Ser 2021-06-24 18:04:26 +02:00
parent 429450e060
commit b289fd10b7

View file

@ -364,6 +364,10 @@ export default class App extends Component {
let isRead = this.hasReceipt(bufName, ReceiptType.READ, msg);
// TODO: messages coming from infinite scroll shouldn't trigger notifications
if (client.isMyNick(msg.prefix.name)) {
isRead = true;
}
let msgUnread = Unread.NONE;
if ((msg.command == "PRIVMSG" || msg.command == "NOTICE") && !isRead) {
let target = msg.params[0];