getGroupHistoryMessageList method Null safety
Get historical group messages
Parameter
count The number of messages to be pulled should not be too many, which will affect the speed of message pulling. It is recommended to pull 20 messages at a time.
lastMsg Get the starting message of the message. If null is passed, the starting message is the session's Latest news
Note:
If the SDK detects that there is no network, it will directly return the local data by default
Only the meeting group (Meeting) can pull the historical messages before entering the group, and the live group (AVChatRoom) messages do not exist in the roaming and local database, calling this interface is invalid
Implementation
Future<V2TimValueCallback<List<V2TimMessage>>> getGroupHistoryMessageList({
required String groupID,
required int count,
String? lastMsgID,
}) async {
return ImFlutterPlatform.instance.getGroupHistoryMessageList(
groupID: groupID, count: count, lastMsgID: lastMsgID);
}