getAdvancedHistoryMessageListReverse method
Get chat history (newly received chat history after startMsg). Used for locating a specific message in global search and then fetching messages received after that message.
conversationID
Conversation ID, can be used for querying notifications
startMsg
Query count
messages starting from this message. The message at index == length - 1 is the latest message, so to get the next page of history, use startMsg = list.last
count
Total number of messages to retrieve in one request
Implementation
Future<AdvancedMessage> getAdvancedHistoryMessageListReverse({
String? conversationID,
Message? startMsg,
int? lastMinSeq,
int? count,
String? operationID,
}) =>
_channel
.invokeMethod(
'getAdvancedHistoryMessageListReverse',
_buildParam({
'conversationID': conversationID ?? '',
'startClientMsgID': startMsg?.clientMsgID ?? '',
'count': count ?? 40,
'lastMinSeq': lastMinSeq ?? 0,
'operationID': Utils.checkOperationID(operationID),
}))
.then((value) => Utils.toObj(value, (map) => AdvancedMessage.fromJson(map)));