lib/irc: extend parseURL to support flags and skip auth + options

This commit is contained in:
Simon Ser 2021-10-20 14:33:16 +02:00
parent a313363ed7
commit 49a59077b7
2 changed files with 48 additions and 12 deletions

View file

@ -909,11 +909,11 @@ export default class App extends Component {
event.preventDefault();
let buf = State.getBuffer(this.state, { server: serverID, name: url.channel || SERVER_BUFFER });
let buf = State.getBuffer(this.state, { server: serverID, name: url.entity || SERVER_BUFFER });
if (buf) {
this.switchBuffer(buf.id);
} else {
this.open(url.channel, serverID);
this.open(url.entity, serverID);
}
}