hunk.code_window:         AsyncClient.getChannel(msg.channel_id);
       }
   }
   function handlePreferenceChangedEvent(msg) {
       const preference = JSON.parse(msg.props.preference);
       GlobalActions.emitPreferenceChangedEvent(preference);
   }
  
hunk.labels: keep keep keep add keep keep keep keep
hunk.after_edit: function handleChannelDeletedEvent(msg) {
       if (ChannelStore.getCurrentId() === msg.channel_id) {
           const teamUrl = TeamStore.getCurrentTeamRelativeUrl();
           browserHistory.push(teamUrl + '/channels/' + Constants.DEFAULT_CHANNEL);
       } else {
           AsyncClient.getChannels();
       }
   }
  
hunk.file_path: webapp/action_creators/websocket_actions.jsx
hunk.type: add
file: $