Fix handling of PART messages with no reason
This commit is contained in:
parent
52f929ec45
commit
50dc0ef64f
6 changed files with 56 additions and 41 deletions
|
@ -85,8 +85,7 @@ export default createReducer(Map(), {
|
|||
},
|
||||
|
||||
[actions.SOCKET_PART](state, action) {
|
||||
const { server, channels, user } = action;
|
||||
const channel = channels[0];
|
||||
const { server, channel, user } = action;
|
||||
if (state.hasIn([server, channel])) {
|
||||
return state.updateIn([server, channel, 'users'], users =>
|
||||
users.filter(u => u.nick !== user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue