Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload message shows IN_PROGRESS after chat minimize or refresh #136

Open
sergey124 opened this issue Aug 15, 2023 · 0 comments
Open

Upload message shows IN_PROGRESS after chat minimize or refresh #136

sergey124 opened this issue Aug 15, 2023 · 0 comments

Comments

@sergey124
Copy link

sergey124 commented Aug 15, 2023

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

  1. Open Chat window
  2. Hit Upload button
  3. Select a file
  4. Submit
  5. See Upload Message item
  6. Hit "Delete" on Upload Message
    1_message_state_after_delete
  7. Minimize Chat window
  8. Restore Chat window
  9. See Upload Message item
    1_message_state_after_minimize_chat

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
      }
    }
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant