Handle channel forwarding and errors better
This commit is contained in:
parent
497934888c
commit
f8e12f5938
15 changed files with 481 additions and 213 deletions
|
@ -140,6 +140,12 @@ export default createReducer(
|
|||
channels.forEach(channel => delete state[server][channel]);
|
||||
},
|
||||
|
||||
[actions.socket.CHANNEL_FORWARD](state, { server, old }) {
|
||||
if (state[server]) {
|
||||
delete state[server][old];
|
||||
}
|
||||
},
|
||||
|
||||
[actions.UPDATE_MESSAGE_HEIGHT](
|
||||
state,
|
||||
{ wrapWidth, charWidth, windowWidth }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue