Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 75d1bef

Browse files
author
Jerome Houdan
committed
fix(chat) prevent 404 when opening webchat
1 parent 59226cd commit 75d1bef

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/containers/Chat/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,11 @@ class Chat extends Component {
138138
}
139139
this._isPolling = true
140140

141-
const { token, channelId, conversationId } = this.props
142141
let shouldPoll = true
143142
let index = 0
144143

145144
do {
146-
const { lastMessageId } = this.props
145+
const { lastMessageId, conversationId, channelId, token } = this.props
147146
let shouldWaitXseconds = false
148147
let timeToSleep = 0
149148
try {

0 commit comments

Comments
 (0)