Remove local messages when closing dm tab, avoid sending open_dm if already open
This commit is contained in:
parent
2a72b198e3
commit
08ffc79a65
4 changed files with 119 additions and 85 deletions
|
@ -140,6 +140,10 @@ export default createReducer(
|
|||
channels.forEach(channel => delete state[server][channel]);
|
||||
},
|
||||
|
||||
[actions.CLOSE_PRIVATE_CHAT](state, { server, nick }) {
|
||||
delete state[server][nick];
|
||||
},
|
||||
|
||||
[actions.socket.CHANNEL_FORWARD](state, { server, old }) {
|
||||
if (state[server]) {
|
||||
delete state[server][old];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue