Select channel when joining through UI
This commit is contained in:
parent
ca23b3ded8
commit
b9f52a8761
7 changed files with 81 additions and 73 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue