forked from CringeStudios/gamja
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:
parent
90a2c91651
commit
24ba3f5189
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user