Extension settings
- Login to the CometChat and select your app.
- Go to the Extensions section and enable the Save message extension.
How does it work?
Save message extension provides you the ability to:- Save messages
- Unsave messages
- Fetch all the saved messages by the user.
1. Save a message
To save a message, use thecallExtension
method provided by the SDK to make an HTTP POST request with the parameters as shown below. You need to pass the msgId
of the message that has to be saved.
2. Unsave a message
To unsave a message, use thecallExtension
method provided by the SDK to make an HTTP DELETE request with the parameters as shown below. You need to pass the msgId
of the message that needs to be unsaved.
3. Fetch saved messages
To fetch the saved messages for a user, use thecallExtension
method provided by the SDK to make an HTTP GET request with the query parameters as shown below.