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

@ -5,7 +5,6 @@ import { FiUsers, FiX } from 'react-icons/fi';
import useModal from 'components/modals/useModal';
import Button from 'components/ui/Button';
import { join } from 'state/channels';
import { select } from 'state/tab';
import { searchChannels } from 'state/channelSearch';
import { linkify } from 'utils';
@ -91,7 +90,6 @@ const AddChannel = () => {
}
dispatch(join([channel], network));
dispatch(select(network, channel));
}
}
};

View file

@ -238,7 +238,7 @@ export default withFormik({
select(values.host);
if (channels.length > 0) {
join(channels, values.host);
join(channels, values.host, false);
}
localStorage.lastNick = values.nick;