getHistoryMessageListWithoutFormat method
该接口已废弃 获取历史消息高级接口(没有处理Native返回数据)
参数 option 拉取消息选项设置,可以设置从云端、本地拉取更老或更新的消息
请注意: 如果设置为拉取云端消息,当 SDK 检测到没有网络,默认会直接返回本地数据 只有会议群(Meeting)才能拉取到进群前的历史消息,直播群(AVChatRoom)消息不存漫游和本地数据库,调用这个接口无效
注意: web不支持该接口
Implementation
@Deprecated("no longer supported")
Future<LinkedHashMap<dynamic, dynamic>> getHistoryMessageListWithoutFormat({
HistoryMsgGetTypeEnum? getType =
HistoryMsgGetTypeEnum.V2TIM_GET_LOCAL_OLDER_MSG,
String? userID,
String? groupID,
int lastMsgSeq = -1,
required int count,
String? lastMsgID,
List<int>? messageSeqList,
int? timeBegin,
int? timePeriod,
}) async {
if (kIsWeb) {
return TencentCloudChatSdkPlatform.instance
.getHistoryMessageListWithoutFormat(
count: count,
getType: getType!.index,
userID: userID,
groupID: groupID,
lastMsgSeq: lastMsgSeq,
lastMsgID: lastMsgID,
messageSeqList: messageSeqList,
timeBegin: timeBegin,
timePeriod: timePeriod,
);
}
// native 暂不支持,后续如有需求再考虑,需要兼容原来的 toJson 方法
return LinkedHashMap<dynamic, dynamic>();
}