Editing Messages
You can only perform edit and delete operations on your own messages. Once the operation is complete, the message's editedAt
will be set to the current time. This allows you to provide UI to the user to inform the user of specific messages that has been edited, if needed. An optional completion block can be provided to notify you of operation success.
Edit Message
To edit the message, you need to pass the following parameters:
messageId
(String
) - ID of the message to edit/updatedata
(String
) - new message
Delete Message
For deleting a message, you need to pass the ID of the message to delete.
A full chatroom example
In this code example, we'll demonstrate the creation of messages with text, image or file and the display of them in a single chat room.
Known Limitation
Last updated