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