hunk.code_window: 			}
   		}
   		// Only report events to users who are in the channel for the event
   		if len(msg.ChannelId) > 0 {
   			allowed := webCon.HasPermissionsToChannel(msg.ChannelId)
   			if !allowed {
   				return false
  
hunk.labels: keep keep keep replace replace keep keep keep keep
hunk.after_edit: 		// Only report events to users who are in the channel for the event execept deleted events
   		if len(msg.ChannelId) > 0 && msg.Action != model.ACTION_CHANNEL_DELETED {
  
hunk.file_path: api/web_hub.go
hunk.type: replace
file: // Copyright (c) 2015 Mattermost, Inc. All Rights Reserved.
  // See License.txt for license information.
  
  import React from 'react';
  import {FormattedMessage} from 'react-intl';
  import {Link} from 'react-router';
  
  import logoImage from 'images/logo.png';
  
  export default class Claim extends React.Component {
      constructor(props) {
          super(props);
  
          this.state = {};
      }
      componentWillMount() {
          this.setState({
              email: this.props.location.query.email,
              newType: this.props.location.query.new_type,
              oldType: this.props.location.query.old_type
          });
      }
      render() {
          return (
              <div>
                  <div className='signup-header'>
                      <Link to='/'>
                          <span className='fa fa-chevron-left'/>
                          <FormattedMessage
                              id='web.header.back'
                          />
                      </Link>
                  </div>
                  <div className='col-sm-12'>
                      <div className='signup-team__container'>
                          <img
                              className='signup-team-logo'
                              src={logoImage}
                          />
                          <div id='claim'>
                              {React.cloneElement(this.props.children, {
                                  currentType: this.state.oldType,
                                  newType: this.state.newType,
                                  email: this.state.email
                              })}
                          </div>
                      </div>
                  </div>
              </div>
          );
      }
  }
  
  Claim.defaultProps = {
  };
  Claim.propTypes = {
      location: React.PropTypes.object.isRequired,
      children: React.PropTypes.node
  };
  