findMessages method

  1. @override
Future<List<V2TimMessage>?> findMessages({
  1. required List<String> messageIDList,
})
override

Implementation

@override
Future<List<V2TimMessage>?> findMessages({
  required List<String> messageIDList,
}) async {
  final res = await TencentImSDKPlugin.v2TIMManager
      .getMessageManager()
      .findMessages(messageIDList: messageIDList);
  if (res.code == 0) {
    return res.data;
  }
  _coreService.callOnCallback(TIMCallback(
      type: TIMCallbackType.API_ERROR,
      errorMsg: res.desc,
      errorCode: res.code));
  return null;
}