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

@ -41,8 +41,8 @@ export default createReducer(
},
[actions.ADD_MESSAGE](state, { message }) {
const { network, from } = message;
if (from !== network && !isChannel(from)) {
const { network, from, to } = message;
if (!to && from.indexOf('.') === -1 && !isChannel(from)) {
open(state, network, from);
}
},