shouldComponentUpdate(nextProps) {
    if (nextProps.thread.conversationHash !== this.props.thread.conversationHash) {
      if (this._mainTimeout) {
        clearTimeout(this._mainTimeout);
      }
      this.setState({ messages: [] });
    }
    return true;
  }
/**
   * Check if the conversation hash has changed.
   * This happens when we switch-out props with a new conversation.
   * If the hashes are changed, we reset the internal state of the component.
   * @param {Object} nextProps
   * @returns {boolean}
   */
Check if the conversation hash has changed.
This happens when we switch-out props with a new conversation.
If the hashes are changed, we reset the internal state of the component.
@param {Object} nextProps
@returns {boolean}
Check if the conversation hash has changed . This happens when we switch - out props with a new conversation . If the hashes are changed we reset the internal state of the component . @param { Object } nextProps @returns { boolean }
shouldComponentUpdate(nextProps) {
    if (nextProps.thread.conversationHash !== this.props.thread.conversationHash) {
      if (this._mainTimeout) {
        clearTimeout(this._mainTimeout);
      }
      this.setState({ messages: [] });
    }
    return true;
  }
shouldComponentUpdate ( nextProps ) { if ( nextProps . thread . conversationHash !== this . props . thread . conversationHash ) { if ( this . _mainTimeout ) { clearTimeout ( this . _mainTimeout ) ; } this . setState ( { messages : [ ] } ) ; } return true ; }
Check if the conversation hash has changed.
Check if the conversation hash has changed .