Commit 958e3235 authored by Jesús Espino's avatar Jesús Espino Committed by Joram Wilander

MM-11530: When the channel is archived mustn't be delete from the store (#584)

parent e6f74281
......@@ -53,11 +53,6 @@ function channels(state = {}, action) {
}
return nextState;
}
case ChannelTypes.RECEIVED_CHANNEL_DELETED: {
const nextState = {...state};
Reflect.deleteProperty(nextState, action.data.id);
return nextState;
}
case ChannelTypes.UPDATE_CHANNEL_HEADER: {
const {channelId, header} = action.data;
return {
......
......@@ -492,9 +492,8 @@ describe('Actions.Channels', () => {
throw new Error(JSON.stringify(deleteRequest.error));
}
const {channels, myMembers} = store.getState().entities.channels;
const {myMembers} = store.getState().entities.channels;
const {incomingHooks, outgoingHooks} = store.getState().entities.integrations;
assert.ifError(channels[secondChannel.id]);
assert.ifError(myMembers[secondChannel.id]);
assert.ifError(incomingHooks[incomingHook.id]);
assert.ifError(outgoingHooks[outgoingHook.id]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment