From 77683937d7aecf5177c888d880b6d3b54ac060be Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 25 Aug 2021 08:46:37 +0200 Subject: [PATCH] Narrow down syncBufferUnread call to self-JOIN --- components/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/app.js b/components/app.js index 67db6ba..f9ef89d 100644 --- a/components/app.js +++ b/components/app.js @@ -629,9 +629,9 @@ export default class App extends Component { case "JOIN": channel = msg.params[0]; - this.syncBufferUnread(serverID, channel); - - if (!client.isMyNick(msg.prefix.name)) { + if (client.isMyNick(msg.prefix.name)) { + this.syncBufferUnread(serverID, channel); + } else { this.addMessage(serverID, channel, msg); } if (channel == this.switchToChannel) {