Skip to content

Commit

Permalink
fix(chat) prevent 404 when opening webchat
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Houdan committed Jun 14, 2018
1 parent 59226cd commit 75d1bef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/index.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/containers/Chat/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,11 @@ class Chat extends Component {
}
this._isPolling = true

const { token, channelId, conversationId } = this.props
let shouldPoll = true
let index = 0

do {
const { lastMessageId } = this.props
const { lastMessageId, conversationId, channelId, token } = this.props
let shouldWaitXseconds = false
let timeToSleep = 0
try {
Expand Down

0 comments on commit 75d1bef

Please sign in to comment.