-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add message deletion functionality to chat API and React hooks
- This commit introduces the ability to delete messages in the chat API with both soft and hard delete options via `DeleteMessageParams`.It exposes this through the Messages feature as a new `delete` method. - Updated related testing and documentation. - Some minor improvements to messages.test.ts for clarity. - The useMessage hook now also supports this functionality via a `deleteMessage` method returned from the hook. - Updated related testing and documentation. - The demo app has been updated to show the new deletion mechanic. It uses the `react-icons` to display a bin icon, clicking this will delete the highlighted message.
- Loading branch information
1 parent
12078ad
commit ece5aa8
Showing
16 changed files
with
3,544 additions
and
1,412 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.