initializeMessageList static method
This method is used to initialize the Single/Group Chat User History to set the message filters.
- @property
userJid
- Chat user JID (Single/Group) - @property
messageId
- Message id of the starting point (Optional) - @property
messageTime
- Message time of the starting point (Optional) - @property
exclude
- If true message of the Message ID given will be excluded in message list default true - @property
topicId
- use to get messages by topic id - @property
limit
- No of messages will be fetched for each request default 25 - @property
ascendingOrder
- If true message list will be returned ascendingOrder by message time default false
Implementation
static Future<dynamic> initializeMessageList(
{required String userJid,
String? messageId,
double? messageTime,
bool exclude = true,
bool ascendingOrder = false,
String? topicId,
int limit = 25}) {
return FlyChatFlutterPlatform.instance.initializeMessageList(
userJid: userJid,
messageId: messageId,
messageTime: messageTime,
exclude: exclude,
ascendingOrder: ascendingOrder,
topicId: topicId,
limit: limit);
}