Select channel when joining through UI

This commit is contained in:
Ken-Håvard Lieng 2020-06-21 05:33:02 +02:00
parent ca23b3ded8
commit b9f52a8761
7 changed files with 81 additions and 73 deletions

View file

@ -235,11 +235,12 @@ export default createReducer(
}
);
export function join(channels, network) {
export function join(channels, network, selectFirst = true) {
return {
type: actions.JOIN,
channels,
network,
selectFirst,
socket: {
type: 'join',
data: { channels, network }