From b289fd10b72a6a282c9bbb1de2e05100af21849c Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 24 Jun 2021 18:04:26 +0200 Subject: [PATCH] Always mark own messages as read --- components/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/app.js b/components/app.js index cae9602..78e7550 100644 --- a/components/app.js +++ b/components/app.js @@ -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];