Favourite Messages
Favourite messages 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 |
CHAT_TYPE | String | "chat" for single chat, "groupchat" for group chat |
IS_FAVOURITE | bool | true , if you are adding to favourites.false to remove from favourites |
flyCallback | FlyResponse | callback to observe the action status |
#
Make favouriteYou can mark the messages as favourite by using the below method.
#
Remove favouriteYou can remove the messages from favourite by using the below method.
#
Get all favourite messagesThe below method will return all the favourite messages from the local db.
- Dart
- Response
#
Unfavorite all the favourite messagesYou can unfavourite all the favourite messages by using the below method.
caution
If favourite message feature unavailable for your plan then it will throw 403 exception.