Merge pull request #3703 from thelounge/xpaw/fix-3699
Open last channel in the list when creating a network
This commit is contained in:
commit
08f77528d9
@ -14,7 +14,9 @@ socket.on("network", function(data) {
|
|||||||
network.channels.forEach(store.getters.initChannel);
|
network.channels.forEach(store.getters.initChannel);
|
||||||
|
|
||||||
store.commit("networks", [...store.state.networks, network]);
|
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) {
|
socket.on("network:options", function(data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user