Switch to server buffer on server name click
Closes: https://todo.sr.ht/~emersion/gamja/68
This commit is contained in:
+3
-2
@@ -757,8 +757,9 @@ export default class App extends Component {
|
||||
}
|
||||
|
||||
var client = this.clients.get(serverID);
|
||||
|
||||
if (client.isChannel(target)) {
|
||||
if (client.isServer(target)) {
|
||||
this.switchBuffer({ server: serverID });
|
||||
} else if (client.isChannel(target)) {
|
||||
this.switchToChannel = target;
|
||||
client.send({ command: "JOIN", params: [target] });
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user