Favourite messags is feature which allows users to mark some messages as favourites. so that they can see those important messages in future without searching for them in chat. Once you marked messages as favourite, you can get those from sdk to show it in your app's screen.
|MESSAGE_ID||String||messageId of the message|
|CHAT_USER_JID||String||jid of the chat user|
|CALLBACK||callback to observe the action status|
You can mark the messages as favourite by using the below method.
You can remove the messages from favourite by using the below method.
The below method will return all the favourite messages from the local db.
You can unfavourite all the favourite messages by using the below method.
If favourite message feature unavailable for your plan then it will throw 403 exception.