From 24ba3f518905909966c2810c55a895a06fcbea9d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sun, 23 Oct 2022 20:21:27 +0200 Subject: [PATCH] Remove unnecessary whoChannelBuffer() call switchBuffer() will do that already, no need to do it manually here. We risk sending two duplicate WHO commands. --- components/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/app.js b/components/app.js index 134896d..8b9bbce 100644 --- a/components/app.js +++ b/components/app.js @@ -1373,9 +1373,7 @@ export default class App extends Component { this.switchBuffer({ server: serverID }); } else if (client.isChannel(target)) { this.switchToChannel = target; - client.join(target, password).then(() => { - this.whoChannelBuffer(target, serverID); - }).catch((err) => { + client.join(target, password).catch((err) => { this.showError(err); }); } else {