Merge pull request #3703 from thelounge/xpaw/fix-3699

Open last channel in the list when creating a network
This commit is contained in:
Pavel Djundik 2020-01-22 10:28:01 +02:00 committed by GitHub
commit 08f77528d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,9 @@ socket.on("network", function(data) {
network.channels.forEach(store.getters.initChannel);
store.commit("networks", [...store.state.networks, network]);
switchToChannel(network.channels[0]);
// Open last channel specified in `join`
switchToChannel(network.channels[network.channels.length - 1]);
});
socket.on("network:options", function(data) {