const loadedChatReducer = (state = {}, action) => {
  switch (action.type) {
    case 'LOAD_CHAT': {
      const groupId = action.groupId;
      return Object.assign({}, state, { groupId });
    }
    default:
      return state;
  }
};

export default loadedChatReducer;

@@ -190,16 +190,275 @@
 ;%0A    %7D%0A
+    case 'CREATE_GROUP_SUCCESS': %7B%0A      const groupId = action.data.createdGroup.id;%0A      return Object.assign(%7B%7D, state, %7B groupId %7D);%0A    %7D%0A    case 'DELETE_GROUP_SUCCESS': %7B%0A      const groupId = '';%0A      return Object.assign(%7B%7D, state, groupId);%0A    %7D%0A
     defa

make reducer handle when a group is created and deleted