Show the pending message on the chat page #82
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix #78
These changes are highly dependent on the dream-aim-deliver/rage-ui-kit#60. The build should fail before releasing a new UI kit version.
A message being sent will now be displayed as soon as the "send" button is clicked. It will have a "clock" icon at the bottom, and as long as it's pending the message box will be disabled.
If the sending request fails, the message bubble will turn red with an "error" icon at the button.
As only one message is allowed to be in the pending status at the time, this covers all the cases :)