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

Upload message shows IN_PROGRESS after chat minimize or refresh #136

@sergey124

Description

@sergey124

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
      }
    }
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions