Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant