initializeMessageList method
Future<bool>
initializeMessageList({
- required String userJid,
- String? messageId,
- String? chatId,
- double? messageTime,
- bool? exclude,
- int limit = 25,
- String? topicId,
- bool ascendingOrder = true,
override
Implementation
@override
Future<bool> initializeMessageList(
{required String userJid,
String? messageId,
String? chatId,
double? messageTime,
bool? exclude,
int limit = 25,
String? topicId,
bool ascendingOrder = true}) async {
bool initializeResponse;
try {
initializeResponse = await mirrorFlyMethodChannel.invokeMethod('initializeMessageList', {
"userJid": userJid,
"messageId": messageId,
"messageTime": messageTime,
"exclude": exclude,
"limit": limit,
"ascendingOrder": ascendingOrder,
"topicId": topicId
});
LogMessage.d("initializeMessageList", "$initializeResponse");
return initializeResponse;
} on PlatformException catch (e) {
LogMessage.d("Platform Exception =", " $e");
rethrow;
} on Exception catch (error) {
LogMessage.d("Exception ", " $error");
rethrow;
}
}