Remove unnecessary whoChannelBuffer() call

switchBuffer() will do that already, no need to do it manually here.
We risk sending two duplicate WHO commands.
This commit is contained in:
Simon Ser 2022-10-23 20:21:27 +02:00
parent 90a2c91651
commit 24ba3f5189

View File

@ -1373,9 +1373,7 @@ export default class App extends Component {
this.switchBuffer({ server: serverID }); this.switchBuffer({ server: serverID });
} else if (client.isChannel(target)) { } else if (client.isChannel(target)) {
this.switchToChannel = target; this.switchToChannel = target;
client.join(target, password).then(() => { client.join(target, password).catch((err) => {
this.whoChannelBuffer(target, serverID);
}).catch((err) => {
this.showError(err); this.showError(err);
}); });
} else { } else {