Skip to content

Commit

Permalink
fix: fixed onStateChange.response
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva committed Jul 23, 2024
1 parent c09d6c2 commit 89844b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/answerSession.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export class AnswerSession {
// Process the message queue immediately, regardless of endOfBlock
while (messageQueue.length > 0) {
lastMessage.content += messageQueue.shift()
this.state[currentStateIndex].response += lastMessage.content
this.state[currentStateIndex].response = lastMessage.content

if (this.events?.onStateChange) {
this.events.onStateChange(this.state)
Expand Down

0 comments on commit 89844b0

Please sign in to comment.