Edit a Message
Edit message is a feature which allows you to edit the content of your previously sent Text Messages and Captions associated with Media in your chat conversation.
Note : User can edit only
SentMessages.
Edit Message#
To edit a sent text message, use this below method by passing the required inputs to modify the content of the message in the editTextMessage method.
Request Param#
| Param | Description | Type | Required |
|---|---|---|---|
| toJid | JID of the To User. username + "@" + xmppSocketHost | JID String | true |
| originalMessageId | Original Id of the message | String | true |
| message | Editable Text content | String | false |
| caption | Editable Caption content | String | false |
| editMessageId | Specifies the Message ID of replied message (Optional) | String | false |
Example Request for text message Edit#
Example Request for media caption message Edit#
info
When a message is being edited, messageListener event will be triggered with response object of receive Message. Based on this event, update the message and refresh the UI.