teneo-web-chat
teneo-web-chat copied to clipboard
Upload message shows IN_PROGRESS after chat minimize or refresh
Summary
After chat window minimize, or page refresh, Upload Message shows as IN_PROGRESS, even though it was DELETED, FAILED or SUCCEEDED.
Steps to reproduce
- Open Chat window
- Hit Upload button
- Select a file
- Submit
- See Upload Message item
- Hit "Delete" on Upload Message
- Minimize Chat window
- Restore Chat window
- See Upload Message item
Expected behavior
Upload Message item is shown as DELETED
Actual behavior
Upload Message item is shown as IN_PROGRESS.
It seems like the updating history on Upload Message state change is missing.
History TeneoWebChat.get('chat_history') is:
[
{
"type": "upload",
"author": "user",
"data": {
"itemId": "_3_llc1efz9_6rueogk065o",
"fileName": "kitten.jpg",
"fileSymbol": "jpg",
"initialUploadState": {
"status": "IN_PROGRESS",
"controlAllowed": true
}
}
}
]