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