Favourite 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 Favouritescaution
If FavouriteMessage feature is unavailable for your plan, then it will throw 403 exception
#
Request ParamStatus | 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 Favouritescaution
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 Favouritescaution
If FavouriteMessage feature is unavailable for your plan, then it will throw 403 exception