componentDidUpdate(prevProps) {
    if (
        prevProps && this.props
        && this.props.thread
        && prevProps.thread
        && this.props.thread.conversationHash !== prevProps.thread.conversationHash
      ) {
      this.playConversation();
    }
  }
/**
   * If the conversation hash has changed between component updates, we need to call playConversation().
   * @param {Object} prevProps
   */
If the conversation hash has changed between component updates, we need to call playConversation().
@param {Object} prevProps
If the conversation hash has changed between component updates we need to call playConversation () . @param { Object } prevProps
componentDidUpdate(prevProps) {
    if (
        prevProps && this.props
        && this.props.thread
        && prevProps.thread
        && this.props.thread.conversationHash !== prevProps.thread.conversationHash
      ) {
      this.playConversation();
    }
  }
componentDidUpdate ( prevProps ) { if ( prevProps && this . props && this . props . thread && prevProps . thread && this . props . thread . conversationHash !== prevProps . thread . conversationHash ) { this . playConversation ( ) ; } }
If the conversation hash has changed between component updates, we need to call playConversation().
If the conversation hash has changed between component updates we need to call playConversation () .