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

Add state to each message and allow users to resend failed messages #22

Open
FabioRosado opened this issue May 25, 2022 · 0 comments
Open
Labels
enhancement New feature or request opsdroid-web-v2 Issues related to the upcoming version of opsdroid web

Comments

@FabioRosado
Copy link
Member

On opsdroid v 2 each message contains the following:

export type MessageType = {
  text: string;
  user: string;
  timestamp: Date;
  image?: string;
};

We should also add a state which will be one of the following:

  • Sending
  • Sent
  • Error

If we have a message in an error state, we should do the following:

  • Show an error icon next to he message
  • Show a tooltip above the icon with the error message
  • Upon clicking we will try to resend the message again
@FabioRosado FabioRosado added enhancement New feature or request opsdroid-web-v2 Issues related to the upcoming version of opsdroid web labels May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request opsdroid-web-v2 Issues related to the upcoming version of opsdroid web
Projects
None yet
Development

No branches or pull requests

1 participant