Open last channel in the list when creating a network

Fixes #3699
This commit is contained in:
Pavel Djundik 2020-01-16 18:07:16 +02:00
parent d7513b43dc
commit 6dac3d122a

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) {