Manage Favorite Messages
The favourite message is a feature that allows users to mark some messages as favourites. So that they can see those important messages in the future without searching for them in chat.
Once you marked messages as favourite, you can get those from SDK to show them on your app's screen.
Add/Remove Favourites#
caution
If FavouriteMessage feature is unavailable for your plan, then it will throw 403 exception
Request Param#
| Status | Description | Type | Required |
|---|---|---|---|
TO_JID | JID of the To User/Group | String | true |
MESSAGE_ID | Unique Message ID | String | true |
IS_FAVOURITE | true for adding to favourites, false for removing | Boolean | true |
MENTIONED_USERS_IDS | Array of Group Mentioned UsersIds | Array | false |
Get All Favourites#
caution
If FavouriteMessage feature is unavailable for your plan, then it will throw 403 exception
Once get all favourites method initiated, an callback method favouriteMessageListener will be triggered and response will be sent.
Remove All Favourites#
caution
If FavouriteMessage feature is unavailable for your plan, then it will throw 403 exception