Favourite Messages
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.
Argument | Type | Description |
---|---|---|
MESSAGE_ID | String | messageId of the message |
CHAT_USER_JID | String | jid of the chat user |
IS_FAVOURITE | boolean | true , if you are adding to favourites.false to remove from favourites |
CALLBACK | ChatActionListener | callback to observe the action status |
#
Make favouriteYou can mark the messages as favourite by using the below method.
- Java
- Kotlin
#
Remove favouriteYou can remove the messages from favourite by using the below method.
- Java
- Kotlin
#
Get all favourite messagesThe below method will return all the favourite messages from the local db.
- Java
- Kotlin
#
Unfavorite all the favourite messagesYou can unfavourite all the favourite messages by using the below method.
- Java
- Kotlin
caution
If favourite message feature unavailable for your plan then it will throw 403 exception.