Get Recent Chat with List of Users
#
Get Recent ChatTo get the recent chat of a user or a group.
- Dart
- Response
Refer this doc to know more about RecentChat Class
Argument | Type | Description |
---|---|---|
JID | String | jid of the user/group |
caution
Will return a null object if a user never made a conversation with that user/group.
#
Get Recent Chat listTo get the recent chat list call the below method.
- Dart
- Response
Argument | Description | Type |
---|---|---|
flyCallback | FlyResponse | callback to observe the action status |
#
Get Recent Chat list of user by PaginationTo get the recent chat list as pagination by providing the limit.
#
Load Recent Chat ListTo fetch initial and next set of recent chat list of user, call the below method.
- Dart
- Response
Argument | Type | Description |
---|---|---|
LOAD_INITIAL_DATA | bool | set true to load initial data ,false to load next set of Data |
LIMIT | int | No of Recent chats will be fetched for each request default value 15 |
flyCallback | FlyResponse | callback to observe the action status |
#
Get Recent Chats By TopicIdTo get all the list of TopicId related chats, send a request to the server as described below.
#
Load Initial Topic Based Chat ListTo fetch initial and next set of Topic based recent chat list, call the below method.
- Dart
- Response
Argument | Type | Description |
---|---|---|
LOAD_INITIAL_DATA | bool | set true to get initial recent chat list otherwise get next set of data |
TOPIC_ID | String | topic id to be used to get recent chats |
LIMIT | int | No of Recent chats will be fetched for each request default value 15 |
flyCallback | FlyResponse | callback to observe the action status |
#
Get Recent Chat list with archived chatsTo get the recent chat list including the archived chat conversation call the below method.
- Dart
- Response
#
Unread countif you want to get the unread count of chat messages, you can utilise the below method.