Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Show Failed Messages in Chat [ROUGH DRAFT] #1532

@jjeffryes

Description

@jjeffryes

This is the client issue for giving chat messages a failed state:

OpenBazaar/openbazaar-go#1093

Currently, when a message is sent the UI shows it under the assumption it will be sent. If the recipient is hard to reach or offline, sending can take several minutes, during which time the message is not written to the database.

This can result in the user seeing their message, navigating away, and then their message disappears because it's not in the chat data returned from the server. The message then reappears later if the message completes its send.

The server is being updated to save the message before sending it, and to have a new failed parameter on each message. If a message is saved and the send fails, the send parameter will indicate that message failed.

Functional Requirements

  • If a loaded chat message has failed, show a failed indicator so the user knows it was not sent.

  • How will a live failure while the user is chatting be handled? We won't know whether a particular message is still sending or not. We could add a socket message for each send with a success or failure?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions